summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-07-23 15:17:35 -0700
committerAlex Yatskov <alex@foosoft.net>2016-07-23 15:17:35 -0700
commitfc17c6a60368e57be432fbc284c53413dfab09bc (patch)
tree2f562054a9b9796c55ef61c63aad034d3b19501c /ext/fg/js/popup.js
parent22d73228ca2899047bcf39a6a2e7146d68c69e0a (diff)
Use document.write to populate IFRAME, as this avoids flicker on navbar
buttons and performs better. Will have to conditionally do the old behavior for Firefox.
Diffstat (limited to 'ext/fg/js/popup.js')
-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();
}
}