mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
parent
cfc4b09d4f
commit
4d545ed684
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ export function checkIfConfigExists(): void {
|
|||
const storagePath = path.join(userDataPath, "/storage/");
|
||||
const settingsFile = `${storagePath}settings.json`;
|
||||
|
||||
if (!fs.existsSync(app.getPath("userData"))) {
|
||||
fs.mkdirSync(app.getPath("userData"));
|
||||
console.log("Created missing user data folder");
|
||||
}
|
||||
|
||||
if (!fs.existsSync(settingsFile)) {
|
||||
if (!fs.existsSync(storagePath)) {
|
||||
fs.mkdirSync(storagePath);
|
||||
|
|
Loading…
Reference in a new issue