1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-03 17:48:30 +00:00

Stop running on certain subdomains that are injected as iframes by the legacy site.

This commit is contained in:
SirStendec 2017-11-14 04:02:34 -05:00
parent 2c1cd94013
commit c0320dd3ab

View file

@ -1,10 +1,11 @@
/* eslint strict: off */ /* eslint strict: off */
'use strict'; 'use strict';
(() => { (() => {
if ( location.hostname === 'player.twitch.tv' ) // Don't run on certain sub-domains.
if ( /^(?:player|im|chatdepot|tmi|api|)\./.test(location.hostname) )
return; return;
const DEBUG = localStorage.ffzDebugMode == 'true' && document.body.classList.contains('ffz-dev'), const DEBUG = localStorage.ffzDebugMode == 'true' && document.body.classList.contains('ffz-dev') && ! window.Ember,
SERVER = DEBUG ? '//localhost:8000' : '//cdn.frankerfacez.com', SERVER = DEBUG ? '//localhost:8000' : '//cdn.frankerfacez.com',
FLAVOR = window.Ember ? 'umbral' : 'avalon', FLAVOR = window.Ember ? 'umbral' : 'avalon',