Skip to content

Instantly share code, notes, and snippets.

@smd877
Created July 4, 2019 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smd877/c43614a67a3753ef43c3d75bc22282ec to your computer and use it in GitHub Desktop.
Save smd877/c43614a67a3753ef43c3d75bc22282ec to your computer and use it in GitHub Desktop.
cd /usr/share/nginx/html/
svn export --force https://github.com/firebase/quickstart-js/trunk/messaging .
cp -pr . ../html.bak
vi firebase-messaging-sw.js
diff -u ../html.bak/firebase-messaging-sw.js firebase-messaging-sw.js > ../firebase-messaging-sw.js.patch
vi index.html
diff -u ../html.bak/index.html index.html > ../index.html.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment