feat: add more logging to JS

This commit is contained in:
2026-02-23 17:38:01 +01:00
parent 40508c883e
commit 330925edce
2 changed files with 43 additions and 0 deletions

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);