Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new webxdc APIs #2412

Merged
merged 9 commits into from
Nov 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix syntax
r10s committed Nov 26, 2024
commit 33a73cafca762f14bd922d2796bdc69ce3804a05
7 changes: 3 additions & 4 deletions deltachat-ios/Controller/WebxdcViewController.swift
Original file line number Diff line number Diff line change
@@ -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)
}