mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 12:55:55 +00:00
4.75.3
* Changed: Use `cdn2` for loading the script, rather than `cdn` to put the script files on a separate domain from other content. * Fixed: Bug with the audio compressor that would cause it to enter a broken state for users (mostly on Firefox). * Experiments: Set the EMQX PubSub experiment to 50%.
This commit is contained in:
parent
3538ef86ad
commit
efd6d2fa42
8 changed files with 13 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "frankerfacez",
|
||||
"author": "Dan Salvato LLC",
|
||||
"version": "4.75.2",
|
||||
"version": "4.75.3",
|
||||
"description": "FrankerFaceZ is a Twitch enhancement suite.",
|
||||
"private": true,
|
||||
"license": "Apache-2.0",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
const DEBUG = localStorage.ffzDebugMode == 'true' && document.body.classList.contains('ffz-dev'),
|
||||
HOST = location.hostname,
|
||||
SERVER = DEBUG ? '//localhost:8000' : '//cdn.frankerfacez.com',
|
||||
SERVER = DEBUG ? '//localhost:8000' : '//cdn2.frankerfacez.com',
|
||||
script = document.createElement('script');
|
||||
|
||||
let FLAVOR =
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
"name": "EMQX MQTT-Based PubSub",
|
||||
"description": "An experimental pubsub system running on an EMQX cluster, to see how that performs.",
|
||||
"groups": [
|
||||
{"value": true, "weight": 20},
|
||||
{"value": false, "weight": 80}
|
||||
{"value": true, "weight": 50},
|
||||
{"value": false, "weight": 50}
|
||||
]
|
||||
},
|
||||
"cf_pubsub": {
|
||||
|
|
|
@ -686,7 +686,7 @@ export default class TranslationManager extends Module {
|
|||
if (! hash)
|
||||
continue;
|
||||
|
||||
promises.push(fetchJSON(`https://cdn.frankerfacez.com/static/locale/${id}/${chnk}.${hash}.json`));
|
||||
promises.push(fetchJSON(`https://cdn2.frankerfacez.com/static/locale/${id}/${chnk}.${hash}.json`));
|
||||
}
|
||||
|
||||
const chunks = await Promise.all(promises);
|
||||
|
|
|
@ -1698,14 +1698,14 @@ export default class PlayerBase extends Module {
|
|||
return true;
|
||||
}
|
||||
|
||||
createCompressor(inst, video, _cmp) {
|
||||
createCompressor(inst, video, ctx) {
|
||||
if ( ! this.canCompress(inst) )
|
||||
return;
|
||||
|
||||
let comp = video._ffz_compressor;
|
||||
if ( ! comp ) {
|
||||
const ctx = _cmp || new AudioContext();
|
||||
if ( ! IS_FIREFOX && ctx.state === 'suspended' ) {
|
||||
ctx = ctx || new AudioContext();
|
||||
if ( ctx.state === 'suspended' ) {
|
||||
let timer;
|
||||
const evt = () => {
|
||||
clearTimeout(timer);
|
||||
|
@ -1715,7 +1715,7 @@ export default class PlayerBase extends Module {
|
|||
return;
|
||||
}
|
||||
|
||||
this.createCompressor(inst, video, comp);
|
||||
this.createCompressor(inst, video, ctx);
|
||||
}
|
||||
|
||||
this.log.debug('Attempting to resume suspended AudioContext.');
|
||||
|
|
|
@ -9,7 +9,7 @@ export const DEBUG = localStorage.ffzDebugMode === 'true' && document.body.class
|
|||
export const EXTENSION = !!__extension__;
|
||||
|
||||
/** The base URL of the FrankerFaceZ CDN. */
|
||||
export const SERVER = DEBUG ? 'https://localhost:8000' : 'https://cdn.frankerfacez.com';
|
||||
export const SERVER = DEBUG ? 'https://localhost:8000' : 'https://cdn2.frankerfacez.com';
|
||||
|
||||
let path = `${SERVER}/script`;
|
||||
|
||||
|
|
|
@ -358,7 +358,7 @@
|
|||
.ffz--twitter-badge {
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
background: url('//cdn.frankerfacez.com/static/twitter_sprites.png');
|
||||
background: url('//cdn2.frankerfacez.com/static/twitter_sprites.png');
|
||||
display: inline-block;
|
||||
margin: 2px 0 -1px 0.5rem;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ const FILE_PATH = DEV_SERVER
|
|||
? 'https://localhost:8000/script/'
|
||||
: FOR_EXTENSION
|
||||
? ''
|
||||
: 'https://cdn.frankerfacez.com/static/';
|
||||
: 'https://cdn2.frankerfacez.com/static/';
|
||||
|
||||
|
||||
console.log('NODE_ENV:', process.env.NODE_ENV);
|
||||
|
@ -340,7 +340,7 @@ if ( DEV_SERVER )
|
|||
|
||||
proxy: {
|
||||
'**': {
|
||||
target: 'https://cdn.frankerfacez.com/',
|
||||
target: 'https://cdn2.frankerfacez.com/',
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue