aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-26 13:48:06 -0400
committerGitHub <noreply@github.com>2020-09-26 13:48:06 -0400
commitf18c28e519e86cb0bd240fbf20b907ef1a9e7f14 (patch)
tree7660575a221fc68f8cbd17b0e6cf584ded7ac355 /ext/fg/js
parentf0fc4bfee6ff6ee87fa694152bf14681c373f0a2 (diff)
Fix displayDetails not being properly null checked (#865)
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/popup-window.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/fg/js/popup-window.js b/ext/fg/js/popup-window.js
index 927a8bac..1365211c 100644
--- a/ext/fg/js/popup-window.js
+++ b/ext/fg/js/popup-window.js
@@ -94,8 +94,9 @@ class PopupWindow extends EventDispatcher {
return false;
}
- showContent(_details, displayDetails) {
- return this._invoke(true, 'setContent', {id: this._id, details: displayDetails});
+ async showContent(_details, displayDetails) {
+ if (displayDetails === null) { return; }
+ await this._invoke(true, 'setContent', {id: this._id, details: displayDetails});
}
setCustomCss(css) {