aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-15 22:39:09 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-15 22:39:09 -0500
commit912d59d3dfefde5738b4244d74d944795edcc02c (patch)
tree7ba5815b67c6a74fbbb11a2a7b6106b93caa41bb /ext/fg
parent10ec165f14e829f73c232b531ea2981c043b17c3 (diff)
Obscure the iframe's URL from the host page
Diffstat (limited to 'ext/fg')
-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 d077b1f8..55f3e0aa 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -39,7 +39,6 @@ class Popup {
this._container.className = 'yomichan-float';
this._container.addEventListener('mousedown', (e) => e.stopPropagation());
this._container.addEventListener('scroll', (e) => e.stopPropagation());
- this._container.setAttribute('src', chrome.runtime.getURL('/fg/float.html'));
this._container.style.width = '0px';
this._container.style.height = '0px';
@@ -240,6 +239,7 @@ class Popup {
this._observeFullscreen();
this._onFullscreenChanged();
this.setCustomOuterCss(this._options.general.customPopupOuterCss, false);
+ this._container.contentDocument.location.href = chrome.runtime.getURL('/fg/float.html');
});
}