1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-10 16:10:55 +00:00
* Added: Synchronize applicable settings to `clips.twitch.tv` pages using an iframe.
* Fixed: Issue with chat replay disappearing on `clips.twitch.tv` pages.
* Changed: Pull the FFZ version number from `package.json`.
This commit is contained in:
SirStendec 2019-06-20 17:14:03 -04:00
parent 04aa1789a2
commit f1c527b721
14 changed files with 314 additions and 23 deletions

View file

@ -6,6 +6,7 @@
return;
const DEBUG = localStorage.ffzDebugMode == 'true' && document.body.classList.contains('ffz-dev') && ! window.Ember,
FLAVOR = location.pathname === '/p/ffz_bridge/' ? 'bridge' : 'avalon',
SERVER = DEBUG ? '//localhost:8000' : '//cdn.frankerfacez.com',
CLIPS = /clips\.twitch\.tv/.test(location.hostname) ? 'clips/' : '',
@ -14,6 +15,6 @@
script.id = 'ffz-script';
script.async = true;
script.crossOrigin = 'anonymous';
script.src = `${SERVER}/script/${CLIPS}avalon.js?_=${Date.now()}`;
script.src = `${SERVER}/script/${CLIPS}${FLAVOR}.js?_=${Date.now()}`;
document.head.appendChild(script);
})();