Skip to content

Instantly share code, notes, and snippets.

@jaw187
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaw187/fd295b01f0f601780bb5 to your computer and use it in GitHub Desktop.
Save jaw187/fd295b01f0f601780bb5 to your computer and use it in GitHub Desktop.
function init() {
var pswp = new Pswp();
pswp.listen("gettingData", refreshSignedUrl(pswp));
};
function refreshSignedUrl(pswp) {
return function (index, item) {
aws.signUrl(item, function(_url) {
pswp.url = _url;
});
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment