Skip to content

Commit

Permalink
Merge pull request #745 from Tianj0o/master
Browse files Browse the repository at this point in the history
fix: window.open error caused by specs undefined
  • Loading branch information
tw93 authored Jul 27, 2024
2 parents 6d0fecc + ecfe2bf commit 1d0628e
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 1d0628e

Please sign in to comment.