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 authored and jeasonnow committed Aug 5, 2024
1 parent 001d438 commit a1c1d66
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 @@ -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;
Expand Down

0 comments on commit a1c1d66

Please sign in to comment.