mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
CB-8683 changed plugin-id to pacakge-name
This commit is contained in:
+3
-3
@@ -22,7 +22,7 @@
|
||||
var argscheck = require('cordova/argscheck'),
|
||||
exec = require('cordova/exec'),
|
||||
FileTransferError = require('./FileTransferError'),
|
||||
ProgressEvent = require('org.apache.cordova.file.ProgressEvent');
|
||||
ProgressEvent = require('cordova-plugin-file.ProgressEvent');
|
||||
|
||||
function newProgressEvent(result) {
|
||||
var pe = new ProgressEvent();
|
||||
@@ -178,10 +178,10 @@ FileTransfer.prototype.download = function(source, target, successCallback, erro
|
||||
} else if (successCallback) {
|
||||
var entry = null;
|
||||
if (result.isDirectory) {
|
||||
entry = new (require('org.apache.cordova.file.DirectoryEntry'))();
|
||||
entry = new (require('cordova-plugin-file.DirectoryEntry'))();
|
||||
}
|
||||
else if (result.isFile) {
|
||||
entry = new (require('org.apache.cordova.file.FileEntry'))();
|
||||
entry = new (require('cordova-plugin-file.FileEntry'))();
|
||||
}
|
||||
entry.isDirectory = result.isDirectory;
|
||||
entry.isFile = result.isFile;
|
||||
|
||||
Reference in New Issue
Block a user