!10285 预热ServiceWorker

Merge pull request !10285 from gaojianhao1/WarmupServiceWorker
This commit is contained in:
openharmony_ci 2024-04-19 06:10:39 +00:00 committed by Gitee
commit bacd8b7dbf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 11 additions and 0 deletions

View File

@ -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;
} }
/** /**

View File

@ -991,6 +991,7 @@ wallpapers
wantagent wantagent
wapi wapi
wappush wappush
warmup
watchers watchers
waterflow waterflow
wcdma wcdma