mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-24 07:42:27 +00:00
processing: pass URL object instead of string
This commit is contained in:
@@ -27,7 +27,7 @@ export async function getJSON(originalURL, lang, obj) {
|
||||
return apiJSON(0, { t: errorUnsupported(lang) });
|
||||
}
|
||||
|
||||
return await match(host, patternMatch, url.toString(), lang, obj)
|
||||
return await match(host, patternMatch, url, lang, obj)
|
||||
} catch (e) {
|
||||
return apiJSON(0, { t: loc(lang, 'ErrorSomethingWentWrong') })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user