Skip to content

Commit

Permalink
Add Javascript support to WebView
Browse files Browse the repository at this point in the history
This allows for more dynamic webpages to be embedded
into the webview within the notifications
  • Loading branch information
madjam002 committed Jan 10, 2021
1 parent 172f2e6 commit 12f8354
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/nl/rogro82/pipup/PopupView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 12f8354

Please sign in to comment.