mirror of
https://github.com/cosmocode/dokuwiki-plugin-imgpaste.git
synced 2025-07-29 12:49:18 +00:00
do not throw error in Firefox
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user