Last active
April 16, 2017 16:43
-
-
Save whitfin/9ad07fadd8f42a0100db51f96b0087f2 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
client | |
.refresh() | |
.then(function () { | |
return client.get(); // return your promise | |
}) | |
.then(function (result) { | |
// result is the return of client.get() | |
}) | |
.catch(function (err) { | |
// common handler for any broken promise now | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment