mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Add more logging for drop operations
This commit is contained in:
parent
e4e7a0912d
commit
f98b4d5956
@ -134,6 +134,12 @@ exports.makeDraggable = function(options) {
|
|||||||
|
|
||||||
exports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) {
|
exports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) {
|
||||||
// Try each provided data type in turn
|
// Try each provided data type in turn
|
||||||
|
if($tw.log.IMPORT) {
|
||||||
|
console.log("Available data types:");
|
||||||
|
for(var type=0; type<dataTransfer.types.length; type++) {
|
||||||
|
console.log("type",dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type]))
|
||||||
|
}
|
||||||
|
}
|
||||||
for(var t=0; t<importDataTypes.length; t++) {
|
for(var t=0; t<importDataTypes.length; t++) {
|
||||||
if(!$tw.browser.isIE || importDataTypes[t].IECompatible) {
|
if(!$tw.browser.isIE || importDataTypes[t].IECompatible) {
|
||||||
// Get the data
|
// Get the data
|
||||||
|
Loading…
Reference in New Issue
Block a user