1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

This is a maintenance commit while working on building a standalone version of the web extension.

This commit is contained in:
SirStendec 2023-05-29 17:54:50 -04:00
parent d0bae9abe1
commit c4b16a4910
2 changed files with 1 additions and 2 deletions

View file

@ -21,6 +21,5 @@
script.async = true;
script.crossOrigin = 'anonymous';
script.src = `${SERVER}/${FLAVOR}.js?_=${Date.now()}`;
document.body.classList.add('ffz-ext');
document.head.appendChild(script);
})();

View file

@ -4,7 +4,7 @@ import {make_enum} from 'utilities/object';
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_OR_EXT = EXTENSION
? __extension__