diff --git a/src/entry.js b/src/entry.js index c0840920..9a6e6889 100644 --- a/src/entry.js +++ b/src/entry.js @@ -1,10 +1,11 @@ /* eslint strict: off */ '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; - 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', FLAVOR = window.Ember ? 'umbral' : 'avalon',