do not throw error in Firefox

This commit is contained in:
Andreas Gohr
2013-05-14 14:31:25 +02:00
parent 4df872e4c4
commit fc4cc294e5
2 changed files with 4 additions and 3 deletions

View File

@ -37,6 +37,7 @@
var clipboardData, found;
found = false;
clipboardData = event.clipboardData;
if(typeof clipboardData === 'undefined') return;
return Array.prototype.forEach.call(clipboardData.types, function (type, i) {
var file, reader;
if (found) {

View File

@ -1,7 +1,7 @@
base imgpaste
author Andreas Gohr
email gohr@cosmocode.de
date 2013-05-13
date 2013-05-14
name imgpaste plugin
desc Add images via cut'n'paste
url http://www.cosmocode.de
desc Add images via cut'n'paste in Chrome
url http://www.dokuwiki.org/plugin:imgpaste