tsbase
    Preparing search index...

    Class PWA

    Index

    Constructors

    Methods

    • Sets up worker context listeners to support offline capability, defaulting to a network first cache fallback strategy

      Parameters

      • workerGlobalScopeRef: ServiceWorkerGlobalScope

        typically "globalThis.self"

      • staticAssets: string[] = []

        file pathnames to immediately cache for future use

      • options: Partial<
            {
                cacheExclusions: string[];
                cacheMode: CacheModes;
                indexPathname: string;
            },
        > = {}

        other overrides

      Returns void

    • Add event listeners to apply haptic vibration on buttons and links when "clicked"

      Parameters

      • pattern: number | number[] = 100

        Milliseconds to "vibrate" on tap of buttons and links

      • windowRef: Window & typeof globalThis = window

      Returns void