aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-19 22:19:31 -0400
committerGitHub <noreply@github.com>2020-09-19 22:19:31 -0400
commit7a8b7eb48871553d98c3d687c48543343a2f8dff (patch)
tree379a94f29f1a544903d27e0390a4c4bc6de4869e /ext
parentd3ed8f43a145162e103f0f9cdb80cc36d26f8386 (diff)
Fix typeof comparing against a string (#849)
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/template-renderer-frame-api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/template-renderer-frame-api.js b/ext/bg/js/template-renderer-frame-api.js
index 7668e176..ff09dc90 100644
--- a/ext/bg/js/template-renderer-frame-api.js
+++ b/ext/bg/js/template-renderer-frame-api.js
@@ -47,7 +47,7 @@ class TemplateRendererFrameApi {
response = {error: this._errorToJson(error)};
}
- if (typeof id === undefined) { return; }
+ if (typeof id === 'undefined') { return; }
source.postMessage({action: `${action}.response`, params: response, id}, '*');
}