Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
chore: dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yayacat committed May 3, 2024
1 parent 40de385 commit 911a097
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
7 changes: 4 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { autoUpdater } = require("electron-updater");
const fs = require("fs");
const path = require("path");
const pushReceiver = require("electron-fcm-push-receiver");
const remote = require("@electron/remote/main");

autoUpdater.autoDownload = true;
autoUpdater.requestHeaders = { "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" };
Expand Down Expand Up @@ -38,8 +39,8 @@ function createWindow() {
},
});
process.env.window = MainWindow.id;
require("@electron/remote/main").initialize();
require("@electron/remote/main").enable(MainWindow.webContents);
remote.initialize();
remote.enable(MainWindow.webContents);
// MainWindow.webContents.openDevTools();
MainWindow.loadFile("./view/index.html");
MainWindow.setMenu(null);
Expand Down Expand Up @@ -129,7 +130,7 @@ function createSettingWindow() {
nativeWindowOpen : true,
},
});
require("@electron/remote/main").enable(SettingWindow.webContents);
remote.enable(SettingWindow.webContents);
SettingWindow.loadFile("./view/setting.html");
SettingWindow.setMenu(null);
SettingWindow.webContents.on("did-finish-load", () => SettingWindow.show());
Expand Down
39 changes: 24 additions & 15 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}
},
"devDependencies": {
"electron": "^27.0.0",
"electron": "30.0.1",
"electron-builder": "^24.6.4",
"eslint": "^8.51.0",
"eslint-plugin-require-sort": "^1.3.0",
Expand All @@ -67,14 +67,14 @@
},
"dependencies": {
"@electron/remote": "^2.0.12",
"bytenode": "^1.5.1",
"bytenode": "^1.5.6",
"electron-common-ipc": "^16.0.4",
"electron-fcm-push-receiver": "^2.1.7",
"electron-updater": "^6.1.4",
"expose-gc": "^1.0.0",
"leaflet": "^1.9.4",
"leaflet-edgebuffer": "^1.0.6",
"leaflet-geojson-vt": "1.1.0",
"leaflet-geojson-vt": "github:ExpTechTW/leaflet-geojson-vt",
"node-fetch": "^2.6.7",
"require-reload": "^0.2.2",
"speak-tts": "^2.0.8",
Expand Down

0 comments on commit 911a097

Please sign in to comment.