diff options
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r-- | ext/fg/js/popup.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 11b25d8f..78106319 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -58,12 +58,14 @@ class Popup { } setContent(content) { - if (this.popup !== null) { - const doc = this.popup.contentDocument; - doc.open(); - doc.write(content); - doc.close(); + if (this.popup === null) { + return; } + + const doc = this.popup.contentDocument; + doc.open(); + doc.write(content); + doc.close(); } sendMessage(action, params, callback) { |