mirror of
https://github.com/jcreek/SelectionWheel.git
synced 2026-07-13 03:03:44 +00:00
feat(#6): Add PWA functionality and service worker
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import * as d3 from 'd3';
|
||||
import loadServiceWorker from './loadServiceWorker';
|
||||
|
||||
require('./assets/favicon.ico');
|
||||
require('./assets/android-chrome-192x192.png');
|
||||
@@ -208,3 +209,7 @@ function startSpinning() {
|
||||
|
||||
const button = document.getElementById('startSpinning');
|
||||
button.onclick = startSpinning;
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
loadServiceWorker();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user