|
|
|
|
@ -15,7 +15,11 @@ export function getQsParam(name: string) {
@@ -15,7 +15,11 @@ export function getQsParam(name: string) {
|
|
|
|
|
return decodeURIComponent(results[2].replace(/\+/g, " ")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function b64Decode(str: string) { |
|
|
|
|
export function b64Decode(str: string, spaceAsPlus = false) { |
|
|
|
|
if (spaceAsPlus) { |
|
|
|
|
str = str.replace(/ /g, "+"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return decodeURIComponent( |
|
|
|
|
Array.prototype.map |
|
|
|
|
.call(atob(str), (c: string) => { |
|
|
|
|
|