Skip to content

Commit

Permalink
Handle Livewire
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored May 5, 2020
1 parent 89cdcdb commit f75510a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function modifyResponse($request, $response)


// Inject headers in Ajax Requests
if ($request->ajax()) {
if ($request->ajax() || $request->headers->get('X-Livewire')) {
$response->headers->set('x-debug-token', $this->getDebugToken($request));
$response->headers->set('x-debug-token-link', route('telescope-toolbar.show', [$this->getDebugToken($request)]));

Expand Down

0 comments on commit f75510a

Please sign in to comment.