Skip to content

Commit

Permalink
fix: capacitor al login loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Nov 23, 2023
1 parent 535e83c commit a41d076
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion capacitor/src/capacitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ function sendToken (line) {
}

App.getLaunchUrl().then(res => {
if (res) handleProtocol(res.url)
if (location.hash !== '#skipAlLogin') {
location.hash = '#skipAlLogin'
if (res) handleProtocol(res.url)
} else {
location.hash = ''
}
})

SafeArea.addListener('safeAreaChanged', updateInsets)
Expand Down

0 comments on commit a41d076

Please sign in to comment.