2018-05-26 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
2022-10-14 16:59:20 +00:00
|
|
|
JavaScript::put($data);
|
2018-05-26 18:58:49 +00:00
|
|
|
}
|
2018-06-02 21:32:26 +00:00
|
|
|
}
|