mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-25 00:53:39 +00:00
Fix Electron.Session type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -15,7 +15,7 @@ const logger = new Logger({
|
||||
});
|
||||
|
||||
export async function linuxUpdateNotification(
|
||||
session: Electron.session,
|
||||
session: Electron.Session,
|
||||
): Promise<void> {
|
||||
let url = "https://api.github.com/repos/zulip/zulip-desktop/releases";
|
||||
url = ConfigUtil.getConfigItem("betaUpdate", false) ? url : url + "/latest";
|
||||
|
||||
@@ -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