diff --git a/desktop/sources/scripts/lib/theme.js b/desktop/sources/scripts/lib/theme.js index 78cbff0..6003653 100644 --- a/desktop/sources/scripts/lib/theme.js +++ b/desktop/sources/scripts/lib/theme.js @@ -73,7 +73,7 @@ function Theme (_default) { const fs = require('fs') const { dialog, app } = require('electron').remote let paths = dialog.showOpenDialog(app.win, { properties: ['openFile'], filters: [{ name: 'Themes', extensions: ['svg'] }] }) - if (!paths) { console.log('Nothing to load') } + if (!paths) { console.log('Nothing to load'); return; } fs.readFile(paths[0], 'utf8', function (err, data) { if (err) throw err themer.load(data)