This commit is contained in:
Louis Lam 2022-10-10 02:47:24 +08:00
parent 07f9aafd7b
commit 71af23cf00

View File

@ -58,7 +58,7 @@ class StatusPage extends BeanModel {
// Preload data
// Add jsesc, fix https://github.com/louislam/uptime-kuma/issues/2186
const escapedJSONObject = jsesc(JSON.stringify(await StatusPage.getStatusPageData(statusPage)), {
const escapedJSONObject = jsesc(await StatusPage.getStatusPageData(statusPage), {
"isScriptContext": true
});