Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace GeneaLabs\LaravelCaffeine; |
||
29 | public function getHtmlAttribute() : string |
||
30 | { |
||
31 | return '<script>setInterval(function(){' |
||
32 | . "var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject('Microsoft.XMLHTTP');" |
||
33 | . "e.open('GET','{$this->url}',!0);" |
||
34 | . "e.setRequestHeader('X-Requested-With','XMLHttpRequest');" |
||
35 | . "e.send();}, {$this->interval});</script>"; |
||
36 | } |
||
38 |