mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 15:27:43 +00:00
This is a maintenance commit while working on building a standalone version of the web extension.
This commit is contained in:
parent
d0bae9abe1
commit
c4b16a4910
2 changed files with 1 additions and 2 deletions
|
@ -21,6 +21,5 @@
|
||||||
script.async = true;
|
script.async = true;
|
||||||
script.crossOrigin = 'anonymous';
|
script.crossOrigin = 'anonymous';
|
||||||
script.src = `${SERVER}/${FLAVOR}.js?_=${Date.now()}`;
|
script.src = `${SERVER}/${FLAVOR}.js?_=${Date.now()}`;
|
||||||
document.body.classList.add('ffz-ext');
|
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -4,7 +4,7 @@ import {make_enum} from 'utilities/object';
|
||||||
|
|
||||||
|
|
||||||
export const DEBUG = localStorage.ffzDebugMode === 'true' && document.body.classList.contains('ffz-dev');
|
export const DEBUG = localStorage.ffzDebugMode === 'true' && document.body.classList.contains('ffz-dev');
|
||||||
export const EXTENSION = document.body.classList.contains('ffz-ext') && !!__extension__;
|
export const EXTENSION = !!__extension__;
|
||||||
export const SERVER = DEBUG ? '//localhost:8000' : 'https://cdn.frankerfacez.com';
|
export const SERVER = DEBUG ? '//localhost:8000' : 'https://cdn.frankerfacez.com';
|
||||||
export const SERVER_OR_EXT = EXTENSION
|
export const SERVER_OR_EXT = EXTENSION
|
||||||
? __extension__
|
? __extension__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue