Obscure the iframe's URL from the host page
This commit is contained in:
parent
10ec165f14
commit
912d59d3df
@ -39,7 +39,6 @@ class Popup {
|
|||||||
this._container.className = 'yomichan-float';
|
this._container.className = 'yomichan-float';
|
||||||
this._container.addEventListener('mousedown', (e) => e.stopPropagation());
|
this._container.addEventListener('mousedown', (e) => e.stopPropagation());
|
||||||
this._container.addEventListener('scroll', (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.width = '0px';
|
||||||
this._container.style.height = '0px';
|
this._container.style.height = '0px';
|
||||||
|
|
||||||
@ -240,6 +239,7 @@ class Popup {
|
|||||||
this._observeFullscreen();
|
this._observeFullscreen();
|
||||||
this._onFullscreenChanged();
|
this._onFullscreenChanged();
|
||||||
this.setCustomOuterCss(this._options.general.customPopupOuterCss, false);
|
this.setCustomOuterCss(this._options.general.customPopupOuterCss, false);
|
||||||
|
this._container.contentDocument.location.href = chrome.runtime.getURL('/fg/float.html');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user