mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-23 05:35:07 +02:00
♻️ Moves service worker init into utils
This commit is contained in:
parent
1e00d0bc67
commit
5b6663dab8
@ -1,8 +1,8 @@
|
|||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
|
|
||||||
import { register } from 'register-service-worker';
|
import { register } from 'register-service-worker';
|
||||||
import { sessionStorageKeys } from './utils/defaults';
|
import { sessionStorageKeys } from '@/utils/defaults';
|
||||||
import conf from '../public/conf.yml';
|
import conf from '../../public/conf.yml';
|
||||||
|
|
||||||
/* Sets a local storage item with the state from the SW lifecycle */
|
/* Sets a local storage item with the state from the SW lifecycle */
|
||||||
const setSwStatus = (swStateToSet) => {
|
const setSwStatus = (swStateToSet) => {
|
Loading…
x
Reference in New Issue
Block a user