Show widget language debug info
This commit is contained in:
@@ -694,7 +694,7 @@ async function widgetConfig(res, url) {
|
||||
if (!site) return json(res, 404, { error: "site_not_found" });
|
||||
const language = widgetLanguageForRequest(site, url);
|
||||
const copy = await widgetCopyForLanguage(site, language);
|
||||
return json(res, 200, { site: formatSite(getSiteById(site.id)), publicBaseUrl: PUBLIC_BASE_URL, language: copy.language, copy: copy.copy });
|
||||
return json(res, 200, { site: formatSite(getSiteById(site.id)), publicBaseUrl: PUBLIC_BASE_URL, requestedLanguage: language, language: copy.language, copy: copy.copy });
|
||||
}
|
||||
|
||||
async function visitorPing(req, res) {
|
||||
|
||||
Reference in New Issue
Block a user