chore: don't decode target uri

This commit is contained in:
userquin 2023-07-30 01:10:14 +02:00
parent 9b0a67e0af
commit 75e2589e1e

View file

@ -17,7 +17,7 @@ function handleAuth(to: RouteLocationNormalized) {
if (to.path === '/') { if (to.path === '/') {
// handle PWA protocol handler // handle PWA protocol handler
if (to.query['protocol-handler'] && to.query.target) { if (to.query['protocol-handler'] && to.query.target) {
const target = decodeURIComponent(to.query.target as string).replace(/^web\+ap:\/\//, 'https://') const target = (to.query.target as string).replace(/^web\+ap:\/\//, 'https://')
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(target) console.log(target)
return navigateTo('/home') return navigateTo('/home')