Skip to content

Commit

Permalink
Fix drip interval from 5e3 to 3e5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Aug 23, 2015
1 parent bd6d516 commit f487875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/LaravelCaffeineDripMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function handle($request, Closure $next)
}

if (is_string($content) && strpos($content, '_token')) {
$content = str_replace('</body>', "<script>setInterval(function(){var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject('Microsoft.XMLHTTP');e.open('GET','/genealabs/laravel-caffeine/drip',!0),e.send()},5e3);</script></body>", $content);
$content = str_replace('</body>', "<script>setInterval(function(){var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject('Microsoft.XMLHTTP');e.open('GET','/genealabs/laravel-caffeine/drip',!0),e.send()},3e5);</script></body>", $content);
$response->setContent($content);
}

Expand Down

0 comments on commit f487875

Please sign in to comment.