PwaOfflinePage
The page the worker shows when a navigation fails and no app shell answers it.
The page the worker shows when a navigation fails and no app shell answers it.
Import#
ts
import type { PwaOfflinePage } from "@shadow-js/dusk/vite";
Signature#
ts
interface PwaOfflinePage {
/** The document title. Default `Offline`. */
readonly title?: string;
/** The heading. Default: the title. */
readonly heading?: string;
/** The message under the heading. Default: a sentence that the page needs a connection. */
readonly message?: string;
/** The `lang` of the page. Default `en`. */
readonly lang?: string;
/** The file name of the page in the output folder. Default `offline.html`. */
readonly file?: string;
}
Members#
| Name | Type | Description |
|---|---|---|
title? |
readonly title?: string |
The document title. Default Offline. |
heading? |
readonly heading?: string |
The heading. Default: the title. |
message? |
readonly message?: string |
The message under the heading. Default: a sentence that the page needs a connection. |
lang? |
readonly lang?: string |
The lang of the page. Default en. |
file? |
readonly file?: string |
The file name of the page in the output folder. Default offline.html. |