Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
harytfw committed Sep 10, 2017
1 parent 63b489b commit 86ed991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
2 changes: 1 addition & 1 deletion content_scripts/content_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class DragClass {
console.log("Not here!!!");
return;
}
this.selection = this.textSelection = "If you see it, please report to the author of GlitterDrag"; // temporary
this.selection = this.textSelection = "If you see this message, please report to the author of GlitterDrag"; // temporary
this.targetType = typeUtil.checkDragTargetType(this.selection, this.textSelection, this.imageLink, fakeNode);

this.actionType = typeUtil.getActionType(this.targetType);
Expand Down
39 changes: 1 addition & 38 deletions options/blank.html
Original file line number Diff line number Diff line change
@@ -1,47 +1,10 @@
<html>

<head>
<script>
function dodrop(event) {
event.stopPropagation();
event.preventDefault();
var dt = event.dataTransfer;
var count = dt.mozItemCount;
output("Items: " + count + "\n");

for (var i = 0; i < count; i++) {
output(" Item " + i + ":\n");
var types = dt.mozTypesAt(i);
for (var t = 0; t < types.length; t++) {
output(" " + types[t] + ": ");
try {
var data = dt.mozGetDataAt(types[t], i);
output("(" + (typeof data) + ") : <" + data + " >\n");
} catch (ex) {
output("<<error>>\n");
dump(ex);
}
}
}
}

function output(text) {
document.getElementById("output").textContent += text;
dump(text);
}
</script>
</head>

<body>

<div id="output" style="min-height: 100px; white-space: pre; border: 1px solid black;" ondragenter="document.getElementById('output').textContent = ''; event.stopPropagation(); event.preventDefault();" ondragover="event.stopPropagation(); event.preventDefault();"
ondrop="dodrop(event);">

<div>

Fix</div>
</div>

<h2>Thanks for using Glitter Drag!</h2>
</body>

</html>

0 comments on commit 86ed991

Please sign in to comment.