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:
parent
22d73228ca
commit
fc17c6a603
@ -59,7 +59,10 @@ class Popup {
|
|||||||
|
|
||||||
setContent(content) {
|
setContent(content) {
|
||||||
if (this.popup !== null) {
|
if (this.popup !== null) {
|
||||||
this.popup.srcdoc = content;
|
const doc = this.popup.contentDocument;
|
||||||
|
doc.open();
|
||||||
|
doc.write(content);
|
||||||
|
doc.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user