Fix displayDetails not being properly null checked (#865)

This commit is contained in:
toasted-nutbread 2020-09-26 13:48:06 -04:00 committed by GitHub
parent f0fc4bfee6
commit f18c28e519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,8 +94,9 @@ class PopupWindow extends EventDispatcher {
return false; return false;
} }
showContent(_details, displayDetails) { async showContent(_details, displayDetails) {
return this._invoke(true, 'setContent', {id: this._id, details: displayDetails}); if (displayDetails === null) { return; }
await this._invoke(true, 'setContent', {id: this._id, details: displayDetails});
} }
setCustomCss(css) { setCustomCss(css) {