Add more logging for drop operations

single-tiddler-mode
Jermolene 2018-09-13 20:42:35 +01:00
rodzic e4e7a0912d
commit f98b4d5956
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -134,6 +134,12 @@ exports.makeDraggable = function(options) {
exports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) {
// 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++) {
if(!$tw.browser.isIE || importDataTypes[t].IECompatible) {
// Get the data