From 7a8b7eb48871553d98c3d687c48543343a2f8dff Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 19 Sep 2020 22:19:31 -0400 Subject: Fix typeof comparing against a string (#849) --- ext/bg/js/template-renderer-frame-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, '*'); } -- cgit v1.2.3