disable root frame popup when iframe is fullscreen
This commit is contained in:
parent
5b3d7fadc3
commit
4fdc300b61
@ -88,7 +88,7 @@ async function main() {
|
||||
}
|
||||
|
||||
let popup;
|
||||
if (isIframe && options.general.showIframePopupsInRootFrame) {
|
||||
if (isIframe && options.general.showIframePopupsInRootFrame && !document.fullscreen) {
|
||||
popup = popups.iframe || await createIframePopupProxy(url, frameOffsetForwarder);
|
||||
popups.iframe = popup;
|
||||
} else if (proxy) {
|
||||
@ -117,6 +117,7 @@ async function main() {
|
||||
};
|
||||
|
||||
yomichan.on('optionsUpdated', applyOptions);
|
||||
window.addEventListener('fullscreenchange', applyOptions, false);
|
||||
|
||||
await applyOptions();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user