Created
June 1, 2012 17:34
-
-
Save PaulKinlan/2853874 to your computer and use it in GitHub Desktop.
http://webintents.org/save image/* service
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
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