remove downloads-folder and use electron instead

This commit is contained in:
Araxeus
2021-04-09 22:44:02 +03:00
parent 61e7124516
commit 193c3823b6
3 changed files with 8 additions and 192 deletions

View File

@ -1,4 +1,4 @@
const downloadsFolder = require("downloads-folder");
const { app } = require("electron");
module.exports.getFolder = (customFolder) => customFolder || downloadsFolder();
module.exports.getFolder = (customFolder) => customFolder || app.getPath("downloads");
module.exports.defaultMenuDownloadLabel = "Download playlist";