mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-06 06:10:54 +00:00
Add a comment to the injection script.
This commit is contained in:
parent
e85633cae3
commit
2ee748dc6f
1 changed files with 4 additions and 3 deletions
|
@ -13,9 +13,10 @@ function ffz_init()
|
||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
script.type = 'text/javascript';
|
script.type = 'text/javascript';
|
||||||
|
|
||||||
var debug = localStorage.ffzDebugMode == "true";
|
if ( localStorage.ffzDebugMode == "true" ) {
|
||||||
|
// Developer Mode is enabled. But is the server running? Check before
|
||||||
if ( debug ) {
|
// we include the script, otherwise someone could break their
|
||||||
|
// experience and not be able to recover.
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", "http://localhost:8000/dev_server", true);
|
xhr.open("GET", "http://localhost:8000/dev_server", true);
|
||||||
xhr.onload = function(e) {
|
xhr.onload = function(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue