Fix #2207
This commit is contained in:
parent
07f9aafd7b
commit
71af23cf00
|
@ -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
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue