When the Dashboard loads, it will call this message handler...
window.webkit.messageHandlers.privacyDashboardGetToggleReportOptions.postMessage({}) Copy
window.webkit.messageHandlers.privacyDashboardGetToggleReportOptions.postMessage({})
... then, to reply with the correct data, call evaluate on the following window method:
The JSON object should match "Generated Schema Definitions".ToggleReportScreen
window.onGetToggleReportOptionsResponse({ "data": [...] }) Copy
window.onGetToggleReportOptionsResponse({ "data": [...] })
Sample JSON 📝
Example
When the Dashboard loads, it will call this message handler...
... then, to reply with the correct data, call evaluate on the following window method:
The JSON object should match "Generated Schema Definitions".ToggleReportScreen
Sample JSON 📝