Fix unnamed functions
This commit is contained in:
parent
c3e7280365
commit
56567903a5
@ -60,8 +60,8 @@ class SettingsPopupPreview {
|
||||
|
||||
this.frontend = new Frontend(this.popup);
|
||||
|
||||
this.frontend.setEnabled = function () {};
|
||||
this.frontend.searchClear = function () {};
|
||||
this.frontend.setEnabled = () => {};
|
||||
this.frontend.searchClear = () => {};
|
||||
|
||||
await this.frontend.prepare();
|
||||
|
||||
|
@ -33,7 +33,7 @@ function utilIsolate(value) {
|
||||
}
|
||||
|
||||
function utilFunctionIsolate(func) {
|
||||
return function (...args) {
|
||||
return function isolatedFunction(...args) {
|
||||
try {
|
||||
args = args.map((v) => utilIsolate(v));
|
||||
return func.call(this, ...args);
|
||||
|
Loading…
Reference in New Issue
Block a user