Switch electron.remote to @electron/remote.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-02-03 01:19:57 -08:00
parent 980de649e3
commit 751eb6ef98
14 changed files with 31 additions and 31 deletions

View File

@@ -1,15 +1,14 @@
import type {NativeImage} from "electron";
import {remote} from "electron";
import path from "path";
import {BrowserWindow, Menu, Tray, nativeImage} from "@electron/remote";
import * as ConfigUtil from "../../common/config-util";
import type {RendererMessage} from "../../common/typed-ipc";
import type {ServerManagerView} from "./main";
import {ipcRenderer} from "./typed-ipc-renderer";
const {Tray, Menu, nativeImage, BrowserWindow} = remote;
let tray: Electron.Tray | null = null;
const ICON_DIR = "../../resources/tray";