Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@PaulKinlan
Created June 1, 2012 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PaulKinlan/2853874 to your computer and use it in GitHub Desktop.
Save PaulKinlan/2853874 to your computer and use it in GitHub Desktop.
http://webintents.org/save image/* service
window.addEventListener("load", function() {
if(window.intent && window.intent.action === "http://webintents.org/save") {
var data = window.intent.data;
if(data instanceof Blob) {
// do something with the blob.
}
else {
// do something with the object.
}
}
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment