ES-modular

This commit is contained in:
F. Y. H. 2024-12-24 13:53:09 +01:00
parent cfd0bcd1f4
commit ce3066c6f4
Signed by: Alnotz
GPG key ID: BB5A7B6724BF531A

View file

@ -1,5 +1,4 @@
'use strict'; export const checkCacheFunction = () => {
const checkCacheFunction = () => {
if ('applicationCache' in window) { if ('applicationCache' in window) {
try { try {
var webappCache = window.applicationCache; var webappCache = window.applicationCache;
@ -51,7 +50,7 @@ const checkCacheFunction = () => {
} }
}; };
const registerServiceWorker = async () => { export const registerServiceWorker = async () => {
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
try { try {
const registration = await navigator.serviceWorker.register( const registration = await navigator.serviceWorker.register(