From a1c1d66088f75dedc9371029921fc7fe4f2eb0c4 Mon Sep 17 00:00:00 2001 From: Tianj0o <2576099053@qq.com> Date: Mon, 15 Jul 2024 19:52:19 +0800 Subject: [PATCH] fix: window.open error caused by specs undefined --- src-tauri/src/inject/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index 295929257..e13247b2e 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -239,7 +239,7 @@ document.addEventListener('DOMContentLoaded', () => { // Apple login and google login if (name === 'AppleAuthentication') { //do nothing - } else if (specs.includes('height=') || specs.includes('width=')) { + } else if (specs && (specs.includes('height=') || specs.includes('width='))) { location.href = url; } else { const baseUrl = window.location.origin + window.location.pathname;