diff --git a/web/ui/src/notifications.ts b/web/ui/src/notifications.ts index 38da646..253fa4f 100644 --- a/web/ui/src/notifications.ts +++ b/web/ui/src/notifications.ts @@ -31,11 +31,11 @@ export function Subscribe(vapid: string) { }) } -function urlBase64ToUint8Array(base64String: string) { - const padding = '='.repeat((4 - (base64String.length % 4)) % 4); - const base64 = (base64String + padding) - .replace(/-/g, '+') - .replace(/_/g, '/'); - const rawData = window.atob(base64); - return Uint8Array.from([...rawData].map(char => char.charCodeAt(0))); -} \ No newline at end of file +// function urlBase64ToUint8Array(base64String: string) { +// const padding = '='.repeat((4 - (base64String.length % 4)) % 4); +// const base64 = (base64String + padding) +// .replace(/-/g, '+') +// .replace(/_/g, '/'); +// const rawData = window.atob(base64); +// return Uint8Array.from([...rawData].map(char => char.charCodeAt(0))); +// } \ No newline at end of file