Created
October 12, 2017 12:43
-
-
Save eezhal92/992cdfe2fdba4819c4674a1d109933c6 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.addEventListener('sync', function(event) { | |
if (event.tag == 'outbox') { | |
// sendEverythingInTheOutbox should return Promise | |
event.waitUntil(sendEverythingInTheOutbox()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment