aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/popup.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 4c5a01d8..92ade784 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -63,9 +63,14 @@ class Popup {
}
setContent(content) {
- if (this.popup !== null) {
- this.popup.setAttribute('srcdoc', content);
+ if (this.popup === null) {
+ return;
}
+
+ const doc = this.popup.contentDocument;
+ doc.open();
+ doc.write(content);
+ doc.close();
}
inject() {