13 lines
570 B
TypeScript
13 lines
570 B
TypeScript
import { isTauri } from '@tauri-apps/api/core';
|
|
|
|
declare const globalThis: ServiceWorkerGlobalScope & WorkerGlobalScope & SharedWorkerGlobalScope & Window;
|
|
|
|
export const IS_MULTIACCOUNT_SUPPORTED = 'SharedWorker' in globalThis;
|
|
export const IS_INTL_LIST_FORMAT_SUPPORTED = 'ListFormat' in Intl;
|
|
export const IS_BAD_URL_PARSER = new URL('tg://host').host !== 'host';
|
|
export const ARE_WEBCODECS_SUPPORTED = 'VideoDecoder' in globalThis;
|
|
|
|
export const IS_TAURI = isTauri();
|
|
// @ts-expect-error no types for electron
|
|
export const IS_ELECTRON = Boolean(globalThis.electron);
|