Created
February 28, 2023 23:39
-
-
Save crashmax-dev/f98aae4cbc8d94bb30f51dbd5a59ccca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ffz_init(){if(!document.querySelector("#ffz_script")){var e=document.createElement("script");if(e.id="ffz_script",e.type="text/javascript",e.src="//cdn.frankerfacez.com/script/script.min.js?_="+Date.now(),"true"==localStorage.ffzDebugMode){var r=new XMLHttpRequest;return r.open("GET","//localhost:8000/dev_server",!0),r.onload=function(n){var t=JSON.parse(r.responseText);console.log("FFZ: Development Server is present. Version "+t.version+" running from: "+t.path),e.src="//localhost:8000/script/script.js?_="+Date.now(),document.body.classList.add("ffz-dev"),document.head.appendChild(e)},r.onerror=function(r){console.log("FFZ: Development Server is not present. Using CDN."),document.head.appendChild(e)},r.send(null)}document.head.appendChild(e)}}ffz_init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment