1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-05 13:50:54 +00:00

4.0.0-rc12.2

* Fixed: Take a few more variables into account when sizing the player for Portrait Mode.
* Changed: Fade in the Host button, not responding to user interaction while it's fading to give users a chance to react to the UI change.
This commit is contained in:
SirStendec 2018-08-04 15:01:00 -04:00
parent 7e4223ccdd
commit d091a35079
11 changed files with 134 additions and 32 deletions

View file

@ -196,6 +196,24 @@ export default class ExperimentManager extends Module {
return null;
}
getTwitchKeyFromName(name) {
const experiments = this.getTwitchExperiments();
if ( ! experiments )
return undefined;
name = name.toLowerCase();
for(const key in experiments)
if ( has(experiments, key) ) {
const data = experiments[key];
if ( data && data.name && data.name.toLowerCase() === name )
return key;
}
}
getTwitchAssignmentByName(name) {
return this.getTwitchAssignment(this.getTwitchKeyFromName(name));
}
_rebuildTwitchKey(key, is_set, new_val) {
const core = this.resolve('site').getCore(),
exps = core.experiments,