fix some issues

This commit is contained in:
Gyandeep Singh committed 2017-09-04 11:26:52 -05:00
1 parent 2e33deffff
commit 26e85ef5d0
3 files changed
+2 -6

No files matched your search

-4
View File
@@ -37,10 +37,6 @@ module.exports = {
'static/**/*' // Precache all static files by default
],
runtimeCaching: [
{
handler: 'fastest',
urlPattern: /[.](png|jpg|css)/
},
{
handler: "networkFirst",
urlPattern: /^https?.*/
+1 -1
View File
@@ -30,7 +30,7 @@ export default class Main extends PureComponent {
${code}`;
};
async componentDidMount() {
componentDidMount() {
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("/service-worker.js")
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "Transform",
"short_name": "Transform",
"theme_color": "#2196f3",
"background_color": "#2196f3",
"background_color": "#424242",
"display": "standalone",
"Scope": "/",
"start_url": "/",