diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index e814fd8f3..1b76e629d 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -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; } /** diff --git a/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt b/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt index 102a07f42..cecb80499 100644 --- a/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt +++ b/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt @@ -991,6 +991,7 @@ wallpapers wantagent wapi wappush +warmup watchers waterflow wcdma