fallback to old notification method, don't spam if old way of creating
notification fails, try to use favicon
This commit is contained in:
parent
1b7e930b2e
commit
0628aac664
4 changed files with 27 additions and 10 deletions
|
|
@ -10,7 +10,7 @@ function urlBase64ToUint8Array (base64String) {
|
|||
return Uint8Array.from([...rawData].map((char) => char.charCodeAt(0)))
|
||||
}
|
||||
|
||||
function isSWSupported () {
|
||||
export function isSWSupported () {
|
||||
return 'serviceWorker' in navigator
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue