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:
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');
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue