product.portableTemp

This commit is contained in:
Joao Moreno
2018-06-14 12:05:39 +02:00
parent bd799550fe
commit 7c8a164902
3 changed files with 3 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ function getPortableDataPath() {
return path.join(path.dirname(getApplicationPath()), product.portable);
}
if (product.portable) {
if (product.portable && product.portableTemp) {
const portablePath = getPortableDataPath();
try { fs.mkdirSync(portablePath); } catch (err) { if (err.code !== 'EEXIST') { throw err; } }