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