mirror of
https://github.com/filp/whoops.git
synced 2026-09-13 03:06:20 +00:00
Merge pull request #343 from ExplodingCabbage/patch-1
Fix gh-pages JsonResponseHandler example
This commit is contained in:
+3
-1
@@ -107,7 +107,9 @@ $run->pushHandler($handler);
|
||||
// first in the stack, it will be executed before the error
|
||||
// page handler, and will have a chance to decide if anything
|
||||
// needs to be done.
|
||||
$run->pushHandler(new JsonResponseHandler);
|
||||
if (Whoops\isAjaxRequest()) {
|
||||
$run->pushHandler(new JsonResponseHandler);
|
||||
}
|
||||
|
||||
// Register the handler with PHP, and you're set!
|
||||
$run->register();
|
||||
|
||||
Reference in New Issue
Block a user