mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
Fix Electron.Session type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user