feat: add more logging to JS

This commit is contained in:
mxmehl committed 2026-02-23 17:38:01 +01:00
1 parent 40508c883e
commit 330925edce
2 files changed
+43

No files matched your search

+3
View File
@@ -257,6 +257,9 @@ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
// headers to tell that result is JSON
header('Content-type: application/json');
// add debug flag to result for JavaScript console logging
$result['debug'] = $debug_on;
// actually output result as JSON, to be digested by getcomments.js
echo json_encode($result);