Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Nov 26, 2024
1 parent ce0a867 commit 33a73ca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions deltachat-ios/Controller/WebxdcViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,9 @@ class WebxdcViewController: WebViewViewController {
DispatchQueue.global(qos: .userInitiated).async { [weak self] in
guard let self else { return }

let base ="\(self.INTERNALSCHEMA)://acc\(self.dcContext.id)-msg\(self.messageId).localhost/"
let url = URL(string: base + href ?? "index.html")
let fallbackUrl = URL(string: base + "index.html")!
let urlRequest = URLRequest(url: url ?? fallbackUrl)
let base = "\(self.INTERNALSCHEMA)://acc\(self.dcContext.id)-msg\(self.messageId).localhost/"
let url = URL(string: base + (href ?? "index.html"))
let urlRequest = URLRequest(url: url ?? URL(string: base + "index.html")!)
DispatchQueue.main.async {
self.webView.load(urlRequest)
}
Expand Down

0 comments on commit 33a73ca

Please sign in to comment.