Permalink
Browse files

Make PWA

  • Loading branch information...
booyaa committed Jan 1, 2019
1 parent ce6cc02 commit b1a4cc77a3d5ff0b0ad364ed5eff57fce30da5cf
Showing with 14 additions and 13 deletions.
  1. +9 −6 gatsby-browser.js
  2. +1 −3 gatsby-config.js
  3. +3 −3 package-lock.json
  4. +1 −1 package.json
@@ -1,7 +1,10 @@
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
exports.onServiceWorkerUpdateFound = () => {
const answer = window.confirm(
`This application has been updated. ` +
`Reload to display the latest version?`
)

// You can delete this file if you're not using it
if (answer === true) {
window.location.reload()
}
}
@@ -45,8 +45,6 @@ module.exports = {
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// 'gatsby-plugin-offline',
'gatsby-plugin-offline',
],
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -8,7 +8,7 @@
"gatsby": "^2.0.76",
"gatsby-image": "^2.0.20",
"gatsby-plugin-manifest": "^2.0.9",
"gatsby-plugin-offline": "^2.0.16",
"gatsby-plugin-offline": "^2.0.20",
"gatsby-plugin-react-helmet": "^3.0.2",
"gatsby-plugin-sharp": "^2.0.14",
"gatsby-source-filesystem": "^2.0.8",

0 comments on commit b1a4cc7

Please sign in to comment.