Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
ybizeul committed Oct 9, 2024
1 parent ddd171b commit 0f5d9aa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions web/ui/src/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
// 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)));
// }

0 comments on commit 0f5d9aa

Please sign in to comment.