Fix typeof comparing against a string (#849)
This commit is contained in:
parent
d3ed8f43a1
commit
7a8b7eb488
@ -47,7 +47,7 @@ class TemplateRendererFrameApi {
|
|||||||
response = {error: this._errorToJson(error)};
|
response = {error: this._errorToJson(error)};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof id === undefined) { return; }
|
if (typeof id === 'undefined') { return; }
|
||||||
source.postMessage({action: `${action}.response`, params: response, id}, '*');
|
source.postMessage({action: `${action}.response`, params: response, id}, '*');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user