1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 14:28:10 +09:00

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')