Fix files not opening from notification popup when downloading ranges

pull/260/head
aandrew-me 1 year ago
parent 1346866943
commit e75a7be1fd

@ -1058,7 +1058,10 @@ function download(
// Adding info about trimmed range to filename
if (range2 || rangeCmd) {
const rangeTxt = (range2 || rangeCmd).replace("*", "");
let rangeTxt = (range2 || rangeCmd).replace("*", "");
if (os.platform() === "win32") {
rangeTxt = rangeTxt.replace(":", "_");
}
filename += `[${rangeTxt}]`
}
console.log("Filename:", filename);

Loading…
Cancel
Save