all
This commit is contained in:
12
Downloads/Voltaserve/ui/src/helpers/query.ts
Normal file
12
Downloads/Voltaserve/ui/src/helpers/query.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { encode, decode } from 'js-base64'
|
||||
|
||||
export function encodeQuery(value: string) {
|
||||
return encode(value, true)
|
||||
}
|
||||
|
||||
export function decodeQuery(value: string): string | undefined {
|
||||
if (!value) {
|
||||
return undefined
|
||||
}
|
||||
return decode(value)
|
||||
}
|
Reference in New Issue
Block a user