fix(node): prevent iOS VoiceWake crash

This commit is contained in:
Peter Steinberger committed 2025-12-12 23:07:30 +00:00
1 parent 952d924581
commit e502ad13f9
7 files changed
+18 -21

No files matched your search

@@ -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)