From dc7479dd1168e8c990704ed5db02cf0fe4b2a50d Mon Sep 17 00:00:00 2001 From: Ben Williams Date: Fri, 2 Sep 2022 13:06:21 -0700 Subject: [PATCH] Adding Support for Javascript Web View --- app/src/main/java/nl/rogro82/pipup/PopupView.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nl/rogro82/pipup/PopupView.kt b/app/src/main/java/nl/rogro82/pipup/PopupView.kt index 0c0cb2e..edf1501 100644 --- a/app/src/main/java/nl/rogro82/pipup/PopupView.kt +++ b/app/src/main/java/nl/rogro82/pipup/PopupView.kt @@ -178,6 +178,9 @@ sealed class PopupView(context: Context, val popup: PopupProps) : LinearLayout(c with(settings) { loadWithOverviewMode = true useWideViewPort = true + javaScriptEnabled = true + domStorageEnabled = true + mediaPlaybackRequiresUserGesture = false } loadUrl(media.uri) } @@ -207,4 +210,4 @@ sealed class PopupView(context: Context, val popup: PopupProps) : LinearLayout(c } } } -} \ No newline at end of file +}