Add theme support variabl
This commit is contained in:
parent
8dafff1b34
commit
a88fd77fd6
4
splice
4
splice
|
@ -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 = {};');
|
||||
|
|
Loading…
Reference in New Issue