Update main.ts

This commit is contained in:
jliddev
2020-11-08 10:48:15 -06:00
parent 5ac01a9c62
commit 074850d99d

View File

@@ -41,6 +41,14 @@ log.transports.file.resolvePath = (variables: log.PathVariables) => {
};
log.info("Main starting");
process.on("uncaughtException", (error) => {
log.error("uncaughtException", error);
});
process.on("unhandledRejection", (error) => {
log.error("unhandledRejection", error);
});
app.setAppUserModelId("io.wowup.jliddev");
if (preferenceStore.get(USE_HARDWARE_ACCELERATION_PREFERENCE_KEY) === "false") {