Add theme support variabl

This commit is contained in:
Jiiks 2015-12-15 08:37:10 +02:00
parent 8dafff1b34
commit a88fd77fd6
1 changed files with 6 additions and 8 deletions

4
splice
View File

@ -18,8 +18,7 @@
console.log('BetterDiscord: Creating Themes Dir');
fs.mkdirSync(_dataPath + "themes/");
}
mainWindow.webContents.executeJavaScript('var themesupport = true');
fs.readdir(_dataPath + "plugins/",function(err,files) {
if (err) { console.log(err); return; }
@ -40,7 +39,6 @@
});
});
fs.readdir(_dataPath + 'themes/', function(err, files) {
if (err) { console.log(err); return; }
mainWindow.webContents.executeJavaScript('var bdthemes = {};');