mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 11:03:21 -04:00
Clean up browser if fails to load zim file
This commit is contained in:
parent
e1f191b1fb
commit
d004ca32b2
@ -274,6 +274,7 @@ struct RootView: View {
|
||||
let mainPageURL = await ZimFileService.shared.getMainPageURL(zimFileID: metadata.fileID) {
|
||||
browser.load(url: mainPageURL)
|
||||
} else {
|
||||
await browser.clear()
|
||||
isOpenFileAlertPresented = true
|
||||
openFileAlert = .unableToOpen(filenames: [url.lastPathComponent])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user