mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
FIX: eslint was broken
This commit is contained in:
parent
6845f0151d
commit
c34520d384
|
@ -129,7 +129,7 @@ export function reopenWidget(name, opts) {
|
||||||
let existing = _registry[name];
|
let existing = _registry[name];
|
||||||
if (!existing) {
|
if (!existing) {
|
||||||
console.error(`Could not find widget ${name} in registry`);
|
console.error(`Could not find widget ${name} in registry`);
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
|
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user