mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-15 07:21:58 +00:00
4.17.12
* 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:
parent
4e0ed7ddcb
commit
c91822cdc9
4 changed files with 66 additions and 12 deletions
|
@ -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.
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue