mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 09:22:53 +00:00
!10285 预热ServiceWorker
Merge pull request !10285 from gaojianhao1/WarmupServiceWorker
This commit is contained in:
commit
bacd8b7dbf
10
api/@ohos.web.webview.d.ts
vendored
10
api/@ohos.web.webview.d.ts
vendored
@ -4525,6 +4525,16 @@ declare namespace webview {
|
|||||||
* @since 12
|
* @since 12
|
||||||
*/
|
*/
|
||||||
static clearHostIP(hostName: string): void;
|
static clearHostIP(hostName: string): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Warmup the registered service worker associated the url.
|
||||||
|
* @param { string } url - The url.
|
||||||
|
* @throws { BusinessError } 17100002 - Invalid url.
|
||||||
|
* @syscap SystemCapability.Web.Webview.Core
|
||||||
|
* @atomicservice
|
||||||
|
* @since 12
|
||||||
|
*/
|
||||||
|
static warmupServiceWorker(url: string): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -991,6 +991,7 @@ wallpapers
|
|||||||
wantagent
|
wantagent
|
||||||
wapi
|
wapi
|
||||||
wappush
|
wappush
|
||||||
|
warmup
|
||||||
watchers
|
watchers
|
||||||
waterflow
|
waterflow
|
||||||
wcdma
|
wcdma
|
||||||
|
Loading…
Reference in New Issue
Block a user