mirror of
https://github.com/cosmocode/dokuwiki-plugin-imgpaste.git
synced 2025-07-23 02:55:13 +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) {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user