mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-12 17:10:54 +00:00
4.32.3
* Fixed: The FFZ Control Center button being positioned incorrectly on streamer dashboard pages. * Fixed: Profile rules for the current category/title not working on certain pages. * Fixed: Swap Sidebars causing rendering issues when in theater mode, with the chat below the player, when not using FrankerFaceZ's Portrait Mode option. * Fixed: The placeholder text being positioned wrong when using Twitch's WYSIWYG chat input. * Fixed: The entire extension loading when viewing an embedded clip, causing undue load. * Changed: Add a link to YouTube's Privacy Policy to the legal page.
This commit is contained in:
parent
370a579635
commit
155938f584
15 changed files with 74 additions and 25 deletions
|
@ -301,7 +301,12 @@ export default class ExperimentManager extends Module {
|
|||
|
||||
setTwitchOverride(key, value = null) {
|
||||
const overrides = Cookie.getJSON(OVERRIDE_COOKIE) || {};
|
||||
overrides[key] = value;
|
||||
const experiments = overrides.experiments = overrides.experiments || {};
|
||||
const disabled = overrides.disabled = overrides.disabled || [];
|
||||
experiments[key] = value;
|
||||
const idx = disabled.indexOf(key);
|
||||
if (idx != -1)
|
||||
disabled.remove(idx);
|
||||
Cookie.set(OVERRIDE_COOKIE, overrides, COOKIE_OPTIONS);
|
||||
|
||||
const core = this.resolve('site')?.getCore?.();
|
||||
|
@ -312,12 +317,13 @@ export default class ExperimentManager extends Module {
|
|||
}
|
||||
|
||||
deleteTwitchOverride(key) {
|
||||
const overrides = Cookie.getJSON(OVERRIDE_COOKIE);
|
||||
if ( ! overrides || ! has(overrides, key) )
|
||||
const overrides = Cookie.getJSON(OVERRIDE_COOKIE),
|
||||
experiments = overrides?.experiments;
|
||||
if ( ! experiments || ! has(experiments, key) )
|
||||
return;
|
||||
|
||||
const old_val = overrides[key];
|
||||
delete overrides[key];
|
||||
const old_val = experiments[key];
|
||||
delete experiments[key];
|
||||
Cookie.set(OVERRIDE_COOKIE, overrides, COOKIE_OPTIONS);
|
||||
|
||||
const core = this.resolve('site')?.getCore?.();
|
||||
|
@ -328,8 +334,9 @@ export default class ExperimentManager extends Module {
|
|||
}
|
||||
|
||||
hasTwitchOverride(key) { // eslint-disable-line class-methods-use-this
|
||||
const overrides = Cookie.getJSON(OVERRIDE_COOKIE);
|
||||
return overrides && has(overrides, key);
|
||||
const overrides = Cookie.getJSON(OVERRIDE_COOKIE),
|
||||
experiments = overrides?.experiments;
|
||||
return experiments && has(experiments, key);
|
||||
}
|
||||
|
||||
getTwitchAssignment(key, channel = null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue