Skip to content

Commit

Permalink
0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
layerssss committed Jan 24, 2016
1 parent 0a6871f commit 0e11329
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ $('*').on('pasteImage', function (ev, data){
console.log("width: " + data.width);
console.log("height: " + data.height);
console.log(data.blob);
}).on('pasteImageError', function(ev, data){
alert('Oops: ' + data.message);
if(data.url){
alert('But we got its url anyway:' + data.url)
}
}).on('pasteText', function (ev, data){
console.log("text: " + data.text);
});
Expand Down
5 changes: 5 additions & 0 deletions README_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ $('*').on('pasteImage', function (ev, data){
console.log("width: " + data.width);
console.log("height: " + data.height);
console.log(data.blob);
}).on('pasteImageError', function(ev, data){
alert('Oops: ' + data.message);
if(data.url){
alert('But we got its url anyway:' + data.url)
}
}).on('pasteText', function (ev, data){
console.log("text: " + data.text);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paste.js",
"version": "0.0.10",
"version": "0.0.11",
"description": "read image/text data from clipboard (cross-browser)",
"main": "paste.js",
"scripts": {
Expand Down

0 comments on commit 0e11329

Please sign in to comment.