Skip to content

Commit

Permalink
Update deltachat-ios/Controller/WebxdcViewController.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Casper Zandbergen <[email protected]>
  • Loading branch information
r10s and Amzd authored Nov 26, 2024
1 parent 7eb1352 commit ce0a867
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deltachat-ios/Controller/WebxdcViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,10 @@ class WebxdcViewController: WebViewViewController {
DispatchQueue.global(qos: .userInitiated).async { [weak self] in
guard let self else { return }

let url = URL(string: "\(self.INTERNALSCHEMA)://acc\(self.dcContext.id)-msg\(self.messageId).localhost/" + (href ?? "index.html"))
let urlRequest = URLRequest(url: url!)
let base ="\(self.INTERNALSCHEMA)://acc\(self.dcContext.id)-msg\(self.messageId).localhost/"

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides

Check failure on line 433 in deltachat-ios/Controller/WebxdcViewController.swift

View workflow job for this annotation

GitHub Actions / build

'=' must have consistent whitespace on both sides
let url = URL(string: base + href ?? "index.html")
let fallbackUrl = URL(string: base + "index.html")!
let urlRequest = URLRequest(url: url ?? fallbackUrl)
DispatchQueue.main.async {
self.webView.load(urlRequest)
}
Expand Down

0 comments on commit ce0a867

Please sign in to comment.