Skip to content

Commit e08c09e

Browse files
committed
Fix comments
1 parent d720d59 commit e08c09e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content-scope-scripts/content-scope-scripts-impl/src/main/java/com/duckduckgo/contentscopescripts/impl/messaging/AdsjsContentScopeMessaging.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ class AdsjsContentScopeMessaging @Inject constructor(
7676

7777
jsMessage?.let {
7878
if (context == jsMessage.context) {
79-
// Process global handlers first (always processed regardless of feature handlers)
80-
79+
// Setup reply proxy so we can send subscription events
8180
if (jsMessage.featureName == "messaging" || jsMessage.method == "initialPing") {
8281
globalReplyProxy = replyProxy
8382
}
8483

84+
// Process global handlers first (always processed regardless of feature handlers)
8585
globalHandlers.getPlugins()
8686
.map { it.getGlobalJsMessageHandler() }
8787
.filter { it.method == jsMessage.method }

0 commit comments

Comments
 (0)