Bug 926736 - Update devtools caller for new return type of get directory methods in DownloadIntegration.jsm r=jwalker

This commit is contained in:
Raymond Lee 2013-10-21 13:04:30 +08:00
parent 686d6d954d
commit d81b16d747

View File

@ -1836,9 +1836,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "Task",
}
// If the filename is relative, tack it onto the download directory
if (!filename.match(/[\\\/]/)) {
let tempfile = yield Downloads.getPreferredDownloadsDirectory();
tempfile.append(filename);
filename = tempfile.path;
let preferredDir = yield Downloads.getPreferredDownloadsDirectory();
filename = OS.Path.join(preferredDir, filename);
}
try {