aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-05-24 19:13:56 -0700
committerAlex Yatskov <alex@foosoft.net>2017-05-24 19:13:56 -0700
commit0efab9773d0cc6586eb4a1f271821795b6d07f5c (patch)
treee9a06728d9e2ab5f51e055f75ec3cc88c182df71 /ext/bg/js/options.js
parentb2833891f9b5d0ceaebc26586b02120bacec68be (diff)
options debugging code
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 1b675da2..4eafd9ef 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -86,6 +86,15 @@ function updateVisibility(options) {
} else {
advanced.hide();
}
+
+ const debug = $('#debug');
+ if (options.general.debugInfo) {
+ const text = JSON.stringify(options, null, 4);
+ debug.html(handlebarsEscape(text));
+ debug.show();
+ } else {
+ debug.hide();
+ }
}
function onOptionsChanged(e) {