1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-15 07:21:58 +00:00
* Added: Better support for settings profiles on the dashboard.
* Fixed: Bug with the new title-based filtering for settings profiles frequently toggling on and off.
* Fixed: Bug with settings context inheritance.
This commit is contained in:
SirStendec 2019-12-31 19:32:55 -05:00
parent 4e0ed7ddcb
commit c91822cdc9
4 changed files with 66 additions and 12 deletions

View file

@ -104,7 +104,7 @@ export default class SettingsContext extends EventEmitter {
_rebuildContext() {
this.__context = this.parent ?
Object.assign({}, this.parent._context, this._context) :
Object.assign({}, this.parent.__context || this.parent._context, this._context) :
this._context;
// Make sure we re-build the cache. Dependency hell.

View file

@ -313,7 +313,10 @@ export const Title = {
return () => false;
}
return ctx => ctx.title && regex.test(ctx.title)
return ctx => {
regex.lastIndex = 0;
return ctx.title && regex.test(ctx.title);
}
},
title: 'Current Title',