This commit is contained in:
Jiiks 2018-03-14 11:06:54 +02:00
parent d6794e6de8
commit 81941bb140
2 changed files with 4 additions and 2 deletions

View File

@ -80,6 +80,7 @@ if (window.BetterDiscord) {
Logger.log('main', 'Attempting to inject again?');
} else {
let instance = null;
// eslint-disable-next-line no-inner-declarations
function init() {
instance = new BetterDiscord();
}

View File

@ -65,6 +65,7 @@ class Helpers {
}
static recursiveArrayCount(parent, key) {
let count = 0;
// eslint-disable-next-line no-empty-pattern
for (let { } of this.recursiveArray(parent, key))
++count;
return this.recursiveArray(parent, key, count);
@ -419,7 +420,7 @@ export class ReactComponents {
}
}
if (have) return have;
this.unknownComponents.push(c);
return c;
this.unknownComponents.push(component);
return component;
}
}