2018-05-26 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: Stan
|
|
|
|
* Date: 26-5-2018
|
2018-06-02 21:32:26 +00:00
|
|
|
* Time: 20:56.
|
2018-05-26 18:58:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Pterodactyl\Traits\Controllers;
|
|
|
|
|
|
|
|
use JavaScript;
|
|
|
|
|
2018-05-26 22:16:13 +00:00
|
|
|
trait PlainJavascriptInjection
|
2018-05-26 18:58:49 +00:00
|
|
|
{
|
|
|
|
/**
|
2018-06-02 21:32:26 +00:00
|
|
|
* Injects statistics into javascript.
|
2018-05-26 18:58:49 +00:00
|
|
|
*/
|
|
|
|
public function injectJavascript($data)
|
|
|
|
{
|
|
|
|
Javascript::put($data);
|
|
|
|
}
|
2018-06-02 21:32:26 +00:00
|
|
|
}
|