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:
parent
2c1cd94013
commit
c0320dd3ab
1 changed files with 3 additions and 2 deletions
|
@ -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',
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue