From ce3066c6f4cff79275fbe21680e04fc8d6eb5a58 Mon Sep 17 00:00:00 2001 From: Alnotz Date: Tue, 24 Dec 2024 13:53:09 +0100 Subject: [PATCH] ES-modular --- bdchapril.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bdchapril.js b/bdchapril.js index d4f4b11..6b35752 100644 --- a/bdchapril.js +++ b/bdchapril.js @@ -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(