mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
Add a limited legacy API to support at least basic channel and global emotes from FFZ:AP.
This commit is contained in:
parent
21b598b92d
commit
c86895797c
5 changed files with 351 additions and 6 deletions
|
@ -13,6 +13,15 @@ import SettingsContext from './context';
|
|||
import MigrationManager from './migration';
|
||||
|
||||
|
||||
const OVERRIDE_GET = {
|
||||
ffz_enable_highlight_sound: false,
|
||||
ffz_highlight_sound_volume: 0,
|
||||
bttv_channel_emotes: true,
|
||||
bttv_global_emotes: true,
|
||||
bttv_gif_emotes: 1
|
||||
}
|
||||
|
||||
|
||||
// ============================================================================
|
||||
// SettingsManager
|
||||
// ============================================================================
|
||||
|
@ -322,7 +331,12 @@ export default class SettingsManager extends Module {
|
|||
// ========================================================================
|
||||
|
||||
context(env) { return this.main_context.context(env) }
|
||||
get(key) { return this.main_context.get(key) }
|
||||
get(key) {
|
||||
if ( has(OVERRIDE_GET, key) )
|
||||
return OVERRIDE_GET[key];
|
||||
|
||||
return this.main_context.get(key);
|
||||
}
|
||||
uses(key) { return this.main_context.uses(key) }
|
||||
update(key) { return this.main_context.update(key) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue