Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:recycle: Moves service worker init into utils

Alicia Sykes5b6663dab8ce
diff --git a/src/registerServiceWorker.js b/src/utils/InitServiceWorker.js
similarity index 96%
rename from src/registerServiceWorker.js
rename to src/utils/InitServiceWorker.js
index 5db4a8f3..03f3b7e0 100644
--- a/src/registerServiceWorker.js
+++ b/src/utils/InitServiceWorker.js
@@ -1,8 +1,8 @@
/* eslint-disable no-console */
import { register } from 'register-service-worker';
-import { sessionStorageKeys } from './utils/defaults';
-import conf from '../public/conf.yml';
+import { sessionStorageKeys } from '@/utils/defaults';
+import conf from '../../public/conf.yml';
/* Sets a local storage item with the state from the SW lifecycle */
const setSwStatus = (swStateToSet) => {