feat: add more logging to JS
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user