Incoming Messages
The Dashboard receives data from Windows by registering a listener on window.chrome.webview
window.chrome.webview
globalThis.windowsInteropAddEventListener('message', (event) => handleViewModelUpdate(event.data)) Copy
globalThis.windowsInteropAddEventListener('message', (event) => handleViewModelUpdate(event.data))
Tip: See "Windows integration".handleIncomingMessage for details of supported messages.
Outgoing messages
When the dashboard needs to communicate back to the Windows application, it will do so in the following way...
globalThis.windowsInteropPostMessage({ Feature: 'PrivacyDashboard', Name: name, Data: data}) Copy
globalThis.windowsInteropPostMessage({ Feature: 'PrivacyDashboard', Name: name, Data: data})
... where name will be one of the known message names, such as "AddToAllowListCommand". See "JavaScript -> Windows Messages OpenInNewTab" below for documented messages.
name
"AddToAllowListCommand"
Incoming Messages
The Dashboard receives data from Windows by registering a listener on
window.chrome.webview
Tip: See "Windows integration".handleIncomingMessage for details of supported messages.
Outgoing messages
When the dashboard needs to communicate back to the Windows application, it will do so in the following way...
... where
name
will be one of the known message names, such as"AddToAllowListCommand"
. See "JavaScript -> Windows Messages OpenInNewTab" below for documented messages.