Skip to content

Commit

Permalink
do not make assumptions about href
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Nov 25, 2024
1 parent 6e9ef84 commit b0eb5de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions deltachat-ios/Controller/WebxdcViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,7 @@ class WebxdcViewController: WebViewViewController {
guard let self else { return }

let file = if let href {
if href.starts(with: "#") {
"index.html" + href
} else {
href
}
href
} else {
"index.html"
}
Expand Down

0 comments on commit b0eb5de

Please sign in to comment.