Fix typeof comparing against a string (#849)

This commit is contained in:
toasted-nutbread 2020-09-19 22:19:31 -04:00 committed by GitHub
parent d3ed8f43a1
commit 7a8b7eb488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}, '*');
}