summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2010-05-12 07:44:38 +0200
committerGuillaume Seguin <guillaume@segu.in>2010-05-12 07:44:38 +0200
commit3dd995f2bbc1a0512081129968f6d5e698a26aa2 (patch)
treed1ac75e5037488cc67e9c587214efcee875e2de6
parent50784fb9844f949a935a09537702fb2b47db1373 (diff)
downloadsqwarea-helper-3dd995f2bbc1a0512081129968f6d5e698a26aa2.tar.gz
sqwarea-helper-3dd995f2bbc1a0512081129968f6d5e698a26aa2.tar.bz2
Move try/catch block to a more proper location
-rw-r--r--sqwarea-helper.user.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/sqwarea-helper.user.js b/sqwarea-helper.user.js
index 82f1066..b86fd50 100644
--- a/sqwarea-helper.user.js
+++ b/sqwarea-helper.user.js
@@ -18,7 +18,11 @@
Map = unsafeWindow.Map;
Tools = unsafeWindow.Tools;
$ = unsafeWindow.$;
- sqwarea_helper_run();
+ try {
+ sqwarea_helper_run();
+ } catch (e) {
+ alert("UserScript exception:\n" + e);
+ }
}
}
@@ -66,9 +70,5 @@
$("div.Actions ol").append (gotobutton);
}
- try {
- sqwarea_init_wait();
- } catch (e) {
- alert("UserScript exception:\n" + e);
- }
+ sqwarea_init_wait();
})();