fix: cancel iframeLoadTimeout on iframe.onload to prevent ghost auth notice

This commit is contained in:
bolbol
2026-08-21 00:25:07 +01:00
parent 8d5c409655
commit 372f644470
+4
View File
@@ -222,6 +222,10 @@ document.addEventListener('DOMContentLoaded', () => {
if (iframe) {
iframe.src = url;
iframe.onload = () => {
if (iframeLoadTimeout) {
clearTimeout(iframeLoadTimeout);
iframeLoadTimeout = null;
}
if (loader) loader.classList.add('hidden');
try {
if (iframe.contentDocument && iframe.contentDocument.title.toLowerCase().includes('cloudflare')) {