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';
const checkCacheFunction = () => {
export const checkCacheFunction = () => {
if ('applicationCache' in window) {
try {
var webappCache = window.applicationCache;
@ -51,7 +50,7 @@ const checkCacheFunction = () => {
}
};
const registerServiceWorker = async () => {
export const registerServiceWorker = async () => {
if ('serviceWorker' in navigator) {
try {
const registration = await navigator.serviceWorker.register(