diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-16 19:16:31 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-16 21:41:31 -0500 |
commit | 1c6ed1d2866d9912b3b65d9e5addf710a6f26b38 (patch) | |
tree | f35a5c6a6ec11cdea8a34910475eb5fe61c67373 /ext/fg/js | |
parent | f019ab741abdc5ddcb9e5c483d86494c7929d8df (diff) |
Set URL before adding to the document
Diffstat (limited to 'ext/fg/js')
-rw-r--r-- | ext/fg/js/popup.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index de05f9f5..45203c03 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -228,6 +228,7 @@ class Popup { return new Promise((resolve) => { const parentFrameId = (typeof this._frameId === 'number' ? this._frameId : null); + this._container.setAttribute('src', chrome.runtime.getURL('/fg/float.html')); this._container.addEventListener('load', () => { const uniqueId = yomichan.generateId(32); Popup._listenForDisplayPrepareCompleted(uniqueId, resolve); @@ -248,7 +249,6 @@ class Popup { this._observeFullscreen(true); this._onFullscreenChanged(); this.setCustomOuterCss(this._options.general.customPopupOuterCss, false); - this._container.setAttribute('src', chrome.runtime.getURL('/fg/float.html')); }); } |