summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-15 19:49:56 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:52:09 -0500
commit56567903a5935a7e57e7a8134e3c118a2188babb (patch)
tree37066ada063f76f9e5325a8a194fdbc35d9b2fd1 /ext
parentc3e7280365a78f648ab15c8460cabfb276e077d4 (diff)
Fix unnamed functions
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/settings/popup-preview-frame.js4
-rw-r--r--ext/bg/js/util.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings/popup-preview-frame.js b/ext/bg/js/settings/popup-preview-frame.js
index 890b8c96..aa2b6100 100644
--- a/ext/bg/js/settings/popup-preview-frame.js
+++ b/ext/bg/js/settings/popup-preview-frame.js
@@ -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();
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 9ebd2ac4..5ce4b08c 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -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);