From 2ee748dc6fd3fc95680069028b54508c12247687 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Thu, 15 Jan 2015 22:22:09 -0500 Subject: [PATCH] Add a comment to the injection script. --- Chrome Extension/script.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Chrome Extension/script.js b/Chrome Extension/script.js index 2abad384..87dba66b 100644 --- a/Chrome Extension/script.js +++ b/Chrome Extension/script.js @@ -13,9 +13,10 @@ function ffz_init() var script = document.createElement('script'); script.type = 'text/javascript'; - var debug = localStorage.ffzDebugMode == "true"; - - if ( debug ) { + if ( localStorage.ffzDebugMode == "true" ) { + // Developer Mode is enabled. But is the server running? Check before + // we include the script, otherwise someone could break their + // experience and not be able to recover. var xhr = new XMLHttpRequest(); xhr.open("GET", "http://localhost:8000/dev_server", true); xhr.onload = function(e) {