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:
parent
7e4223ccdd
commit
d091a35079
11 changed files with 134 additions and 32 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue