From 12f8354cd0409db1fd1c1c17f63ea95c3a2d9327 Mon Sep 17 00:00:00 2001 From: Jamie Greeff Date: Sun, 10 Jan 2021 00:52:49 +0000 Subject: [PATCH] Add Javascript support to WebView This allows for more dynamic webpages to be embedded into the webview within the notifications --- app/src/main/java/nl/rogro82/pipup/PopupView.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/nl/rogro82/pipup/PopupView.kt b/app/src/main/java/nl/rogro82/pipup/PopupView.kt index 0c0cb2e..275dad0 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) }