mirror of
https://github.com/munki/munki.git
synced 2026-04-25 14:29:02 -05:00
Add comment about loading error.html
This commit is contained in:
+1
@@ -931,6 +931,7 @@ class MainWindowController: NSWindowController {
|
||||
|
||||
guard requestComponents.starts(with: baseComponents) else {
|
||||
msc_debug_log("Attempt to access file outside htmlDir: \(url_fragment)")
|
||||
// since error.html doesn't exist, this ends up triggering buildItemNotFoundPage()
|
||||
let errorURL = baseURL.appendingPathComponent("error.html")
|
||||
webView.load(URLRequest(url: errorURL))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user