From 4b46a2988b690379c2833eea23c30e9a8db040c1 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 23 Apr 2016 22:22:58 -0700 Subject: Get rid of flicker --- ext/fg/js/popup.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ext/fg/js') 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() { -- cgit v1.2.3