From 35e3b8f57949428bef69e312b496bb3ca9b7b33c Mon Sep 17 00:00:00 2001 From: Douglas Muth Date: Mon, 27 Apr 2015 21:38:22 -0400 Subject: [PATCH] Added debugging --- main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index b6d0d67..612dbea 100644 --- a/main.js +++ b/main.js @@ -325,7 +325,14 @@ if (!i_can_has_good_crypto()) { // jQuery.getScript("./wordlist.js").done( function(data) { - //jQuery("#roll_dice").click(); // Debugging + + // + // If "debug" is set in the GET data, roll the dice on page load. + // Speed up my development a bit. :-) + // + if (location.search.indexOf("debug") != -1) { + jQuery("#roll_dice").click(); // Debugging + } }).fail( function(jqxhr, settings, exception) {