Created
March 6, 2017 22:16
-
-
Save gauntface/7acd0a174638876cb3bf25d90e99d5ad to your computer and use it in GitHub Desktop.
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
| self._handlePushEvent = (event) => { | |
| const data = event.data.json(); | |
| const promiseChain = self.registration.showNotification(data.title, { | |
| body: data.body, | |
| }); | |
| event.waitUntil(promiseChain); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment