summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r--ext/fg/js/popup.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 4c2b18f7..4ec34249 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -58,12 +58,9 @@ class Popup {
}
setContent(content) {
- if (this.popup === null) {
- return;
+ if (this.popup !== null) {
+ this.popup.srcdoc = content;
}
-
- const doc = this.popup;
- doc.srcdoc=content;
}
sendMessage(action, params, callback) {