1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-12 17:10:54 +00:00
* Added: Custom Chat Commands now have an option to paste their output into chat input rather than immediately sending the message.
* Added: The option to tab-complete emotes without the use of a colon (:). Please note that this feature still has limitations due to limitations in how Twitch's tab-completion system is implemented, and may not work as you expect.
* Added: The number of results from emote tab-completion will now be limited to 25 by default to mitigate its performance impact. This may be disabled in settings.
This commit is contained in:
SirStendec 2019-06-27 23:19:05 -04:00
parent 3120d586d2
commit 86b0b624f7
6 changed files with 59 additions and 12 deletions

View file

@ -149,13 +149,13 @@ export default class ExperimentManager extends Module {
if ( window.__twilightSettings )
return window.__twilightSettings.experiments;
const core = this.resolve('site').getCore();
const core = this.resolve('site')?.getCore();
return core && core.experiments.experiments;
}
usingTwitchExperiment(key) {
const core = this.resolve('site').getCore();
const core = this.resolve('site')?.getCore();
return core && has(core.experiments.assignments, key)
}
@ -165,7 +165,7 @@ export default class ExperimentManager extends Module {
overrides[key] = value;
Cookie.set(OVERRIDE_COOKIE, overrides, COOKIE_OPTIONS);
const core = this.resolve('site').getCore();
const core = this.resolve('site')?.getCore();
if ( core )
core.experiments.overrides[key] = value;
@ -181,7 +181,7 @@ export default class ExperimentManager extends Module {
delete overrides[key];
Cookie.set(OVERRIDE_COOKIE, overrides, COOKIE_OPTIONS);
const core = this.resolve('site').getCore();
const core = this.resolve('site')?.getCore();
if ( core )
delete core.experiments.overrides[key];
@ -194,7 +194,7 @@ export default class ExperimentManager extends Module {
}
getTwitchAssignment(key) {
const core = this.resolve('site').getCore(),
const core = this.resolve('site')?.getCore(),
exps = core && core.experiments;
if ( ! exps )
@ -235,7 +235,7 @@ export default class ExperimentManager extends Module {
}
_rebuildTwitchKey(key, is_set, new_val) {
const core = this.resolve('site').getCore(),
const core = this.resolve('site')?.getCore(),
exps = core.experiments,
old_val = has(exps.assignments, key) ?