disable root frame popup when iframe is fullscreen

This commit is contained in:
siikamiika 2020-04-17 23:09:55 +03:00
parent 5b3d7fadc3
commit 4fdc300b61

View File

@ -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();
}