mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 926736 - Update devtools caller for new return type of get directory methods in DownloadIntegration.jsm r=jwalker
This commit is contained in:
parent
686d6d954d
commit
d81b16d747
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user