These notes are unpolished collections of thoughts, unfinished ideas, and things I want to remember later. In the spirit of learning in public, I'm sharing them here. Have fun exploring, if you want!

Turning a Gatsby Site into a Progressive Web App

Tags: [[Gatsby]] [[Drafts]]

## Add gatsby-plugin-manifest

## Add gatsby-plugin-offline

Check to see if there are updates:

const onServiceWorkerUpdateReady = () => {
  const answer = window.confirm(
    'This application has been updated. ' +
      'Reload to display the latest version?'
  );

  if (answer === true) {
    window.location.reload();
  }
};

export { onServiceWorkerUpdateReady, shouldUpdateScroll, wrapPageElement };