Fix Electron.Session type.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-03-04 15:37:45 -08:00
parent 1ea7fa813a
commit 2983c381ae
2 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ const generateFilePath = (url: string): string => {
export const _getServerSettings = async (
domain: string,
session: Electron.session,
session: Electron.Session,
): Promise<ServerConf> => {
const response = await fetchResponse(
net.request({
@@ -89,7 +89,7 @@ export const _getServerSettings = async (
export const _saveServerIcon = async (
url: string,
session: Electron.session,
session: Electron.Session,
): Promise<string> => {
try {
const response = await fetchResponse(net.request({url, session}));
@@ -113,7 +113,7 @@ export const _saveServerIcon = async (
export const _isOnline = async (
url: string,
session: Electron.session,
session: Electron.Session,
): Promise<boolean> => {
try {
const response = await fetchResponse(