aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-04-01 21:42:58 +0200
committerGitHub <noreply@github.com>2023-04-01 21:42:58 +0200
commit37e63bc9bf646352ceffb30494d4cfaeaa9cb7be (patch)
tree17771ba816c0d7cbe16398ee7558e7ef7bb0c82a /src
parent92fb59d2c4343b6bf96713e5586dad38a6fa90b2 (diff)
parenta62d0ac7a88c86ff8a21ed0fe35b05a26bbdec05 (diff)
downloadViper-37e63bc9bf646352ceffb30494d4cfaeaa9cb7be.tar.gz
Viper-37e63bc9bf646352ceffb30494d4cfaeaa9cb7be.zip
Merge pull request #181 from LumiChnn/main
Fixes broken JSON files on restart
Diffstat (limited to 'src')
-rw-r--r--src/app/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 7382a37..73537a2 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -39,7 +39,7 @@ if (fs.existsSync("viper.json")) {
if (! reset) {
ipcRenderer.send("exit");
} else {
- fs.writeFileSync("viper.json", "{}");
+ fs.rmSync("viper.json");
ipcRenderer.send("relaunch");
}