summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/fg/js/popup.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 4ec34249..11b25d8f 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -59,7 +59,10 @@ class Popup {
setContent(content) {
if (this.popup !== null) {
- this.popup.srcdoc = content;
+ const doc = this.popup.contentDocument;
+ doc.open();
+ doc.write(content);
+ doc.close();
}
}