From 26e85ef5d061bf7607453fc0eebc01f6408ea7ec Mon Sep 17 00:00:00 2001 From: Gyandeep Singh Date: Mon, 4 Sep 2017 11:26:52 -0500 Subject: [PATCH] fix some issues --- next.config.js | 4 ---- pages/index.js | 2 +- static/manifest.json | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/next.config.js b/next.config.js index 722a75a..f1651b2 100644 --- a/next.config.js +++ b/next.config.js @@ -37,10 +37,6 @@ module.exports = { 'static/**/*' // Precache all static files by default ], runtimeCaching: [ - { - handler: 'fastest', - urlPattern: /[.](png|jpg|css)/ - }, { handler: "networkFirst", urlPattern: /^https?.*/ diff --git a/pages/index.js b/pages/index.js index 6f0f984..2f2d003 100644 --- a/pages/index.js +++ b/pages/index.js @@ -30,7 +30,7 @@ export default class Main extends PureComponent { ${code}`; }; - async componentDidMount() { + componentDidMount() { if ("serviceWorker" in navigator) { navigator.serviceWorker .register("/service-worker.js") diff --git a/static/manifest.json b/static/manifest.json index 58da4af..c170312 100644 --- a/static/manifest.json +++ b/static/manifest.json @@ -2,7 +2,7 @@ "name": "Transform", "short_name": "Transform", "theme_color": "#2196f3", - "background_color": "#2196f3", + "background_color": "#424242", "display": "standalone", "Scope": "/", "start_url": "/",