summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/util.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js
index 0a943512f..b079388e4 100644
--- a/js/util.js
+++ b/js/util.js
@@ -241,6 +241,9 @@ $(document).ready(function(){
alert(result);
}
else {
+ if($('body')[0].id == 'bookmarklet') {
+ self.close();
+ }
if ($("#command_result", xml).length > 0) {
var result = document._importNode($("p", xml).get(0), true);
result = result.textContent || result.innerHTML;