Interface WorkerNavigator

    A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.

    MDN Reference

    interface WorkerNavigator {
        appCodeName: string;
        appName: string;
        appVersion: string;
        hardwareConcurrency: number;
        language: string;
        languages: readonly string[];
        locks: LockManager;
        mediaCapabilities: MediaCapabilities;
        onLine: boolean;
        permissions: Permissions;
        platform: string;
        product: string;
        storage: StorageManager;
        userAgent: string;
        clearAppBadge(): Promise<void>;
        setAppBadge(contents?: number): Promise<void>;
    }
    Hierarchy

    Properties

    appCodeName: string

    MDN Reference

    appName: string

    MDN Reference

    appVersion: string

    MDN Reference

    hardwareConcurrency: number
    language: string
    languages: readonly string[]
    mediaCapabilities: MediaCapabilities
    onLine: boolean
    permissions: Permissions
    platform: string

    MDN Reference

    product: string

    MDN Reference

    userAgent: string

    Methods