diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-19 22:19:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 22:19:31 -0400 |
commit | 7a8b7eb48871553d98c3d687c48543343a2f8dff (patch) | |
tree | 379a94f29f1a544903d27e0390a4c4bc6de4869e /ext/bg | |
parent | d3ed8f43a145162e103f0f9cdb80cc36d26f8386 (diff) |
Fix typeof comparing against a string (#849)
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/template-renderer-frame-api.js | 2 |
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}, '*'); } |