fix: window.open error caused by specs undefined
This commit is contained in:
2
src-tauri/src/inject/event.js
vendored
2
src-tauri/src/inject/event.js
vendored
@@ -236,7 +236,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
// Apple login and google login
|
// Apple login and google login
|
||||||
if (name === 'AppleAuthentication') {
|
if (name === 'AppleAuthentication') {
|
||||||
//do nothing
|
//do nothing
|
||||||
} else if (specs.includes('height=') || specs.includes('width=')) {
|
} else if (specs && (specs.includes('height=') || specs.includes('width='))) {
|
||||||
location.href = url;
|
location.href = url;
|
||||||
} else {
|
} else {
|
||||||
const baseUrl = window.location.origin + window.location.pathname;
|
const baseUrl = window.location.origin + window.location.pathname;
|
||||||
|
|||||||
Reference in New Issue
Block a user