Update WebViewWidgetMessageInterceptor.kt

Improve parameter naming
This commit is contained in:
Will Hunt 2024-12-30 10:15:14 +00:00 committed by GitHub
parent 30a288a216
commit 3476cae00b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,8 +46,8 @@ class WebViewWidgetMessageInterceptor(
// objects in log lines. // objects in log lines.
view?.evaluateJavascript( view?.evaluateJavascript(
""" """
function logFn(logFn, ...args) { function logFn(consoleLogFn, ...args) {
logFn( consoleLogFn(
args.map( args.map(
a => typeof a === "string" ? a : JSON.stringify(a) a => typeof a === "string" ? a : JSON.stringify(a)
).join(' ') ).join(' ')