Skip to content

Commit 12f8354

Browse files
committed
Add Javascript support to WebView
This allows for more dynamic webpages to be embedded into the webview within the notifications
1 parent 172f2e6 commit 12f8354

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/nl/rogro82/pipup/PopupView.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ sealed class PopupView(context: Context, val popup: PopupProps) : LinearLayout(c
178178
with(settings) {
179179
loadWithOverviewMode = true
180180
useWideViewPort = true
181+
javaScriptEnabled = true
182+
domStorageEnabled = true
183+
mediaPlaybackRequiresUserGesture = false
181184
}
182185
loadUrl(media.uri)
183186
}

0 commit comments

Comments
 (0)