summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-10 14:08:18 -0400
committerGitHub <noreply@github.com>2020-05-10 14:08:18 -0400
commitc38cd70e91214a6f3510d78433653c85bf4d2df9 (patch)
treedec6937478f45fc4ad18654ffddc6876b6a169a3
parent9742d5662bde1340a12c343599cc962e2b175803 (diff)
Load frame content using contentDocument.location.href instead of src attribute (#529)
-rw-r--r--ext/fg/js/popup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index c024bb64..d45c7c2a 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -336,9 +336,9 @@ class Popup {
const {secret, token} = await this._initializeFrame(this._frame, this._targetOrigin, this._frameId, (frame) => {
frame.removeAttribute('src');
frame.removeAttribute('srcdoc');
- frame.setAttribute('src', chrome.runtime.getURL('/fg/float.html'));
this._observeFullscreen(true);
this._onFullscreenChanged();
+ frame.contentDocument.location.href = chrome.runtime.getURL('/fg/float.html');
});
this._frameSecret = secret;
this._frameToken = token;