Browse Source

Remove wrong comment

pull/3467/head
Benoit Marty 1 month ago
parent
commit
7f1d9bbc3f
  1. 3
      features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/createaccount/WebViewMessageInterceptor.kt

3
features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/createaccount/WebViewMessageInterceptor.kt

@ -34,9 +34,6 @@ class WebViewMessageInterceptor( @@ -34,9 +34,6 @@ class WebViewMessageInterceptor(
super.onPageStarted(view, url, favicon)
// We inject this JS code when the page starts loading to attach a message listener to the window.
// This listener will receive both messages:
// - EC widget API -> Element X (message.data.api == "fromWidget")
// - Element X -> EC widget API (message.data.api == "toWidget"), we should ignore these
view?.evaluateJavascript(
"""
window.addEventListener(

Loading…
Cancel
Save