Skip to content

Commit 7d60bcd

Browse files
committed
Fix comments
1 parent 0ae6261 commit 7d60bcd

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
@@ -79,12 +79,12 @@ class AdsjsContentScopeMessaging @Inject constructor(
7979

8080
jsMessage?.let {
8181
if (context == jsMessage.context) {
82-
// Process global handlers first (always processed regardless of feature handlers)
83-
82+
// Setup reply proxy so we can send subscription events
8483
if (jsMessage.featureName == "messaging" || jsMessage.method == "initialPing") {
8584
globalReplyProxy = replyProxy
8685
}
8786

87+
// Process global handlers first (always processed regardless of feature handlers)
8888
globalHandlers.getPlugins()
8989
.map { it.getGlobalJsMessageHandler() }
9090
.filter { it.method == jsMessage.method }

0 commit comments

Comments
 (0)