mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Added safeDecodeURI method. Closes #848.
This commit is contained in:
parent
b6ab8c381f
commit
65d4094095
3 changed files with 14 additions and 3 deletions
|
|
@ -32,3 +32,12 @@ export function getQueryString(params = {}) {
|
|||
export function makeUrl(url, params) {
|
||||
return `${url}${getQueryString(params)}`;
|
||||
}
|
||||
|
||||
export function safeDecodeURI(s) {
|
||||
try {
|
||||
return decodeURI(s);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue