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?'); Logger.log('main', 'Attempting to inject again?');
} else { } else {
let instance = null; let instance = null;
// eslint-disable-next-line no-inner-declarations
function init() { function init() {
instance = new BetterDiscord(); instance = new BetterDiscord();
} }

View File

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