add explore exception log

This commit is contained in:
Dominic Drees 2025-05-03 01:00:01 +02:00
parent 4a6857cf46
commit 8a810f3527

View file

@ -31,6 +31,10 @@ extension JSController {
return
}
self.context.exceptionHandler = { _, exception in
Logger.shared.log(exception?.toString() ?? "Unknown JS Exception", type: .error)
}
Logger.shared.log(html, type: .html)
if let parseFunction = self.context.objectForKeyedSubscript("exploreResults"),
let results = parseFunction.call(withArguments: [html]).toArray() as? [[String: String]] {