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.
This commit is contained in:
Alex Yatskov 2016-07-23 15:17:35 -07:00
parent 22d73228ca
commit fc17c6a603

View File

@ -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();
}
}