CoreWebView2Profile.AreWebViewScriptApisEnabledForServiceWorkers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables or disables WebView2 specific Service Worker JS APIs in the
WebView2s associated with this Profile. When set to true, chrome and
webview objects are available in Service Workers. chrome.webview exposes
APIs to interact with the WebView from Service Workers. The default value
is false. This setting applies to all newly installed Service Workers
within the profile and is not persisted across WebView2 sessions.
public bool AreWebViewScriptApisEnabledForServiceWorkers { get; set; }
member this.AreWebViewScriptApisEnabledForServiceWorkers : bool with get, set
Public Property AreWebViewScriptApisEnabledForServiceWorkers As Boolean