Skip to content

Commit

Permalink
fix: window.open error caused by specs undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianj0o committed Jul 15, 2024
1 parent 1544b15 commit ecfe2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/inject/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,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;
Expand Down

0 comments on commit ecfe2bf

Please sign in to comment.