summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-04 18:23:00 +0200
committerAlon Levy <alon@pobox.com>2014-12-04 18:23:00 +0200
commit52f4be6d1044f791d98f9d887e09034ec3a23f07 (patch)
tree780f2de2c74dc878891279e676d73f0400b4d8a2 /src
parent1ab8b2b0206b35cde4dfb2dec926731d808af78b (diff)
Fixes #112: /?debug=1 gives you back debugging helpers
Diffstat (limited to 'src')
-rw-r--r--src/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js
index fd45a76d..4234beaf 100644
--- a/src/main.js
+++ b/src/main.js
@@ -23,6 +23,9 @@ function(textanalysis_ui, textanalysis, buttons, history, drag_n_drop,
if (json) {
rz_core.load_from_json(json);
}
+ if (util.getParameterByName('debug')) {
+ $(document.body).addClass('debug');
+ }
document.body.onkeyup = function(e) {
var key = (e.key || (e.charCode && String.fromCharCode(e.charCode))