Skip to content

Commit 26f2ecd

Browse files
forgot a name change
1 parent e45f66e commit 26f2ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/ServiceWorkerPostMessageSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This API provides a setting to expose the webview2 specific JS APIs on service w
66

77
# Description
88

9-
We propose adding the `ServiceWorkerJSAPIsEnabled` setting API to control the exposure of WebView2-specific JavaScript APIs in service worker scripts. When enabled, developers can use WebView2's service worker postmessage APIs to communicate directly between service worker scripts and the WebView2 host.
9+
We propose adding the `WebViewScriptApisForServiceWorkerEnabled` setting API to control the exposure of WebView2-specific JavaScript APIs in service worker scripts. When enabled, developers can use WebView2's service worker postmessage APIs to communicate directly between service worker scripts and the WebView2 host.
1010

1111
Previously, WebView2-specific JavaScript APIs were only exposed to service worker scripts when developers subscribed to the `ServiceWorkerRegistered` event. This approach was unreliable because developers could obtain service worker registrations through the `GetServiceWorkerRegistrations` API and attempt to use service worker postmessage APIs, which would fail since the JavaScript APIs were not exposed.
1212

0 commit comments

Comments
 (0)