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;