fix(node): prevent iOS VoiceWake crash

This commit is contained in:
Peter Steinberger
2025-12-12 23:06:17 +00:00
parent 952d924581
commit e502ad13f9
7 changed files with 18 additions and 21 deletions

View File

@@ -57,7 +57,7 @@ final class ScreenController: ObservableObject {
if let maxWidth {
config.snapshotWidth = NSNumber(value: Double(maxWidth))
}
let image: UIImage = try await withCheckedThrowingContinuation { (cont: CheckedContinuation<UIImage, Error>) in
let image: UIImage = try await withCheckedThrowingContinuation { cont in
self.webView.takeSnapshot(with: config) { image, error in
if let error {
cont.resume(throwing: error)