mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +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
|
||||
*/
|
||||
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
|
||||
wapi
|
||||
wappush
|
||||
warmup
|
||||
watchers
|
||||
waterflow
|
||||
wcdma
|
||||
|
Loading…
Reference in New Issue
Block a user