From 3476cae00bb3da99be2c2e5bc034abb3648a775d Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Mon, 30 Dec 2024 10:15:14 +0000 Subject: [PATCH] Update WebViewWidgetMessageInterceptor.kt Improve parameter naming --- .../call/impl/utils/WebViewWidgetMessageInterceptor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/WebViewWidgetMessageInterceptor.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/WebViewWidgetMessageInterceptor.kt index ea1e03cabb..56209e32c8 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/WebViewWidgetMessageInterceptor.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/WebViewWidgetMessageInterceptor.kt @@ -46,8 +46,8 @@ class WebViewWidgetMessageInterceptor( // objects in log lines. view?.evaluateJavascript( """ - function logFn(logFn, ...args) { - logFn( + function logFn(consoleLogFn, ...args) { + consoleLogFn( args.map( a => typeof a === "string" ? a : JSON.stringify(a) ).join(' ')