We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e2f22 commit 7f06db2Copy full SHA for 7f06db2
apps/code/src/main/index.ts
@@ -1,6 +1,6 @@
1
import "reflect-metadata";
2
import os from "node:os";
3
-import { app, powerMonitor } from "electron";
+import { app } from "electron";
4
import log from "electron-log/main";
5
import "./utils/logger";
6
import "./services/index.js";
@@ -93,14 +93,6 @@ app.whenReady().then(async () => {
93
createWindow();
94
await initializeServices();
95
initializeDeepLinks();
96
- await initializeServices();
97
- powerMonitor.on("suspend", () => {
98
- log.info("System entering sleep");
99
- });
100
-
101
- powerMonitor.on("resume", () => {
102
- log.info("System waking from sleep");
103
104
});
105
106
app.on("window-all-closed", () => {
0 commit comments