Skip to content

Commit

Permalink
docs(deck-options): restricted browsing
Browse files Browse the repository at this point in the history
Issue 16715
PR 16729
  • Loading branch information
david-allison authored and lukstbit committed Oct 12, 2024
1 parent 5ba1e28 commit cf1e975
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class DeckOptions : PageFragment() {
view: WebView?,
request: WebResourceRequest?
): Boolean {
// #16715: ensure that the fragment can't be used for general web browsing
val host = request?.url?.host ?: return shouldOverrideUrlLoading(view, request)
return if (ankiManualHostRegex.matches(host)) {
super.shouldOverrideUrlLoading(view, request)
Expand Down

0 comments on commit cf1e975

Please sign in to comment.