Fix incorrect URL encoding
This commit is contained in:
parent
bbd51f29eb
commit
819faddb38
|
@ -102,8 +102,8 @@
|
||||||
// location.protocol + '//' + location.host + location.pathname
|
// location.protocol + '//' + location.host + location.pathname
|
||||||
const uri = '#/chat/new?petals=true&' + Object.entries(chatSettings).reduce((a, [k, v]) => {
|
const uri = '#/chat/new?petals=true&' + Object.entries(chatSettings).reduce((a, [k, v]) => {
|
||||||
const t = typeof v
|
const t = typeof v
|
||||||
if (hasChatSetting(k) && (t === 'boolean' || t === 'string' || t === 'number')) {
|
if (hasChatSetting(k as any) && (t === 'boolean' || t === 'string' || t === 'number')) {
|
||||||
a.push(encodeURI(k) + '=' + encodeURI(v as any))
|
a.push(encodeURIComponent(k) + '=' + encodeURIComponent(v as any))
|
||||||
}
|
}
|
||||||
return a
|
return a
|
||||||
}, [] as string[]).join('&')
|
}, [] as string[]).join('&')
|
||||||
|
|
Loading…
Reference in New Issue