diff --git a/mobile/src/main/java/org/openhab/habdroid/ui/activity/AbstractWebViewFragment.kt b/mobile/src/main/java/org/openhab/habdroid/ui/activity/AbstractWebViewFragment.kt index d9ef67fdc0..71dc146ee4 100644 --- a/mobile/src/main/java/org/openhab/habdroid/ui/activity/AbstractWebViewFragment.kt +++ b/mobile/src/main/java/org/openhab/habdroid/ui/activity/AbstractWebViewFragment.kt @@ -25,6 +25,7 @@ import android.view.MenuInflater import android.view.MenuItem import android.view.View import android.view.ViewGroup +import android.webkit.ConsoleMessage import android.webkit.JavascriptInterface import android.webkit.PermissionRequest import android.webkit.WebChromeClient @@ -179,6 +180,11 @@ abstract class AbstractWebViewFragment : Fragment(), ConnectionFactory.UpdateLis } } } + + override fun onConsoleMessage(message: ConsoleMessage): Boolean { + Log.d(TAG, "${message.message()} -- From line ${message.lineNumber()} of ${message.sourceId()}") + return true + } } isStackRoot = requireArguments().getBoolean(KEY_IS_STACK_ROOT)