processing: pass URL object instead of string

This commit is contained in:
dumbmoron
2023-12-14 23:04:05 +00:00
parent 30c9652b6e
commit 81e68c37f5
4 changed files with 12 additions and 7 deletions

View File

@@ -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') })
}