Created
July 18, 2014 21:22
-
-
Save tobie/83674a1b83e1d4d3da21 to your computer and use it in GitHub Desktop.
This file contains 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
store.match('/api.json').then(function(response) { | |
return response || store.prime('/api.json'); | |
}).then(asJSON).then(updatePage).catch(displayError); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment