summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-23 22:22:58 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-23 22:22:58 -0700
commit4b46a2988b690379c2833eea23c30e9a8db040c1 (patch)
treeb663501af68a620f65cead19a7f228815315e459 /ext/fg/js/popup.js
parent896cd7960cf80357cf812371fd1d918ccb30939b (diff)
Get rid of flicker
Diffstat (limited to 'ext/fg/js/popup.js')
-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() {