Created
February 20, 2020 12:43
-
-
Save SuryaSankar/b6078a5b6ea3e11a4eba72a4ec92a781 to your computer and use it in GitHub Desktop.
Webpush basic home page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <link rel="icon" href="data:,"> | |
| </head> | |
| <body> | |
| <h1>Webpush Demo</h1> | |
| <script | |
| type="text/javascript" | |
| src="/static/register_service_worker.js"> | |
| </script> | |
| <script type="text/javascript"> | |
| registerServiceWorker( | |
| "/static/service_worker.js", | |
| "{{config['VAPID_PUBLIC_KEY']}}", | |
| "/api/push-subscriptions" | |
| ); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment