1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-10 16:10:55 +00:00
* Added: Setting to change the height of chat actions.
* Added: Profiles can now be toggled via hotkey.
* Added: Profiles can now be imported from URL as well as File.
* Added: Profiles with update URLs can have automatic updates disabled.
* Fixed: Support for the `clips.twitch.tv` domain.
* Fixed: Badges that make use of foreground text are no longer white in light themes.
* Fixed: Mod Icons appearing smaller than normal.
* Changed: Allow several types of actions, unrelated to moderation, to be used on a person's own chat messages.
* Changed: Better warn users in the Control Center when the current profile is set to automatically update.
* Changed: Make the FFZ Control Center remember which profile is selected when re-opening / refreshing.
* API Added: Add-ons can now target specific supported flavors. Choices thus far are `main` and `clips`.
* API Added: The `site.menu_button` now has `addToast(...)` and can display multiple toasts. Toasts can also time out.
* API Fixed: `openFile(...)` never resolving if the user closes the dialog without selecting a file.
This commit is contained in:
SirStendec 2021-03-02 16:55:25 -05:00
parent 0d433c3ebd
commit 9086230686
61 changed files with 2267 additions and 222 deletions

View file

@ -442,6 +442,16 @@ export default class SettingsContext extends EventEmitter {
return this._get(key, key, []);
}
getChanges(key, fn, ctx) {
this.onChange(key, fn, ctx);
fn.call(ctx, this.get(key));
}
onChange(key, fn, ctx) {
this.on(`changed:${key}`, fn, ctx);
}
uses(key) {
if ( key.startsWith('context.') )
return null;