Skip to content

Commit c17c919

Browse files
sammacbethmuodov
andauthored
Update shared/js/background/components/cpm-standalone-messaging.js
Co-authored-by: Maxim Tsoy <mtsoy@duckduckgo.com>
1 parent 75e762c commit c17c919

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎shared/js/background/components/cpm-standalone-messaging.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export class CPMStandaloneMessaging {
2121

2222
async refreshDashboardState(tabId, url, dashboardState) {
2323
console.log('refreshDashboardState', tabId, url, dashboardState);
24-
// no-op
24+
// in standalone and windows builds, dashboard pulls the state directly whenever it's opened. But we can still notify it here if the state changes while dashboard is open
25+
postPopupMessage({ messageType: 'updateTabData' });
2526
}
2627

2728
async showCpmAnimation(tabId, topUrl, isCosmetic) {

0 commit comments

Comments
 (0)