|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
868 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | Copyright 2018 Google LLC
|
|---|
| 3 |
|
|---|
| 4 | Use of this source code is governed by an MIT-style
|
|---|
| 5 | license that can be found in the LICENSE file or at
|
|---|
| 6 | https://opensource.org/licenses/MIT.
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | import {disable} from './disable.js';
|
|---|
| 10 | import {enable} from './enable.js';
|
|---|
| 11 | import {isSupported} from './isSupported.js';
|
|---|
| 12 | import './_version.js';
|
|---|
| 13 |
|
|---|
| 14 | // See https://github.com/GoogleChrome/workbox/issues/2946
|
|---|
| 15 | interface NavigationPreloadState {
|
|---|
| 16 | enabled?: boolean;
|
|---|
| 17 | headerValue?: string;
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | interface NavigationPreloadManager {
|
|---|
| 21 | disable(): Promise<void>;
|
|---|
| 22 | enable(): Promise<void>;
|
|---|
| 23 | getState(): Promise<NavigationPreloadState>;
|
|---|
| 24 | setHeaderValue(value: string): Promise<void>;
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
| 27 | declare global {
|
|---|
| 28 | interface ServiceWorkerRegistration {
|
|---|
| 29 | readonly navigationPreload: NavigationPreloadManager;
|
|---|
| 30 | }
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | /**
|
|---|
| 34 | * @module workbox-navigation-preload
|
|---|
| 35 | */
|
|---|
| 36 |
|
|---|
| 37 | export {disable, enable, isSupported};
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.