1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 08:28:31 +00:00

Add a comment to the injection script.

This commit is contained in:
SirStendec 2015-01-15 22:22:09 -05:00
parent e85633cae3
commit 2ee748dc6f

View file

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