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) {