mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
add explore exception log
This commit is contained in:
parent
4a6857cf46
commit
8a810f3527
1 changed files with 4 additions and 0 deletions
|
|
@ -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]] {
|
||||
|
|
|
|||
Loading…
Reference in a new issue