parent
58a04ce1a5
commit
5fb0a995dd
37 changed files with 59 additions and 49 deletions
|
|
@ -505,7 +505,7 @@ class WindowSystem extends EventEmitter {
|
|||
function urlBase64ToUint8Array(base64String: string): Uint8Array {
|
||||
const padding = '='.repeat((4 - base64String.length % 4) % 4);
|
||||
const base64 = (base64String + padding)
|
||||
.replace(/\-/g, '+')
|
||||
.replace(/-/g, '+')
|
||||
.replace(/_/g, '/');
|
||||
|
||||
const rawData = window.atob(base64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue