Files
zulip-desktop/app/renderer/js/utils/system-util.ts
Anders Kaseorg 4151e020f6 Revert "xo: Fix import/extensions."
This reverts commit 5623ab3866.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-03-08 21:58:40 -08:00

17 lines
390 B
TypeScript

import {ipcRenderer} from "../typed-ipc-renderer";
export const connectivityError: string[] = [
"ERR_INTERNET_DISCONNECTED",
"ERR_PROXY_CONNECTION_FAILED",
"ERR_CONNECTION_RESET",
"ERR_NOT_CONNECTED",
"ERR_NAME_NOT_RESOLVED",
"ERR_NETWORK_CHANGED",
];
const userAgent = ipcRenderer.sendSync("fetch-user-agent");
export function getUserAgent(): string {
return userAgent;
}