Fixed Default Settings not working
authorRemixDev <deezloaderremix@gmail.com>
Fri, 8 Mar 2019 23:07:38 +0000 (00:07 +0100)
committerRemixDev <deezloaderremix@gmail.com>
Fri, 8 Mar 2019 23:07:38 +0000 (00:07 +0100)
app/app.js
app/public/js/frontend.js

index 2a6927a35a3880216a425dfe518647c62bb8cdef..392cf7cf445d59488cdc8abb061badea1260f1a4 100644 (file)
@@ -41,7 +41,7 @@ if(!fs.existsSync(localpaths.user+"config.json")){
 const configFileLocation = localpaths.user+"config.json"
 // Folders
 const coverArtFolder = os.tmpdir() + path.sep + 'deezloader-imgs' + path.sep
-const defaultDownloadFolder = localpaths.user + 'Deezloader Music' + path.sep
+const defaultDownloadFolder = localpaths.home + 'Deezloader Music' + path.sep
 // Default settings
 const defaultSettings = require('./default.json').userDefined
 // Spotify Files
index bdab48899e85f16a50edbb9a6660d844f0662788..06f43eeb8500116d02f2aa62303ade6872088011 100644 (file)
@@ -5,7 +5,7 @@ const socket = io.connect(window.location.href)
 const localStorage = window.localStorage
 if(typeof mainApp !== "undefined"){
        var defaultUserSettings = mainApp.defaultSettings
-       var defaultDownloadLocation = mainApp.defaultDownloadDir
+       var defaultDownloadLocation = mainApp.defaultDownloadFolder
 }
 var modalQuality = document.getElementById('modal_quality');
 modalQuality.open = false