Update ThemeRepo.plugin.js

This commit is contained in:
Mirco Wittrien 2019-05-03 15:18:24 +02:00
parent c162824b05
commit 46f44fa5c8
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ class ThemeRepo {
}
createThemeFile (filename, content) {
fileSystem.writeFile(require("path").join(BDFDB.getThemesFolder(), filename), content, (error) => {
require("fs").writeFile(require("path").join(BDFDB.getThemesFolder(), filename), content, (error) => {
if (error) BDFDB.showToast(`Unable to save Theme "${filename}".`, {type:"danger"});
else BDFDB.showToast(`Successfully saved Theme "${filename}".`, {type:"success"});
});