ES-modular
This commit is contained in:
parent
cfd0bcd1f4
commit
ce3066c6f4
1 changed files with 2 additions and 3 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue