Bump electron version (#152)

This commit is contained in:
Tomasz Hołubowicz
2022-06-23 17:00:35 +02:00
committed by GitHub
parent 8f47756244
commit 7b18322e17
4 changed files with 331 additions and 193 deletions

View File

@@ -1,5 +1,5 @@
require("@electron/remote/main").initialize();
const { app, BrowserWindow, globalShortcut, ipcMain } = require("electron");
const { app, BrowserWindow, components, globalShortcut, ipcMain } = require("electron");
const {
settings,
store,
@@ -124,8 +124,9 @@ function addGlobalShortcuts() {
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on("ready", () => {
app.on("ready", async () => {
if (isMainInstanceOrMultipleInstancesAllowed()) {
await components.whenReady();
createWindow();
addMenu();
createSettingsWindow();