From f18c28e519e86cb0bd240fbf20b907ef1a9e7f14 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 26 Sep 2020 13:48:06 -0400 Subject: Fix displayDetails not being properly null checked (#865) --- ext/fg/js/popup-window.js | 5 +++-- 1 file 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) { -- cgit v1.2.3