Merge pull request #745 from Tianj0o/master

fix: window.open error caused by specs undefined
This commit is contained in:
Tw93
2024-07-27 22:16:24 +08:00
committed by GitHub

View File

@@ -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;