2018-05-26 19:58:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Traits\Controllers;
|
|
|
|
|
|
|
|
use JavaScript;
|
|
|
|
|
2018-05-26 23:16:13 +01:00
|
|
|
trait PlainJavascriptInjection
|
2018-05-26 19:58:49 +01:00
|
|
|
{
|
|
|
|
/**
|
2018-06-02 22:32:26 +01:00
|
|
|
* Injects statistics into javascript.
|
2018-05-26 19:58:49 +01:00
|
|
|
*/
|
|
|
|
public function injectJavascript($data)
|
|
|
|
{
|
2022-10-14 17:59:20 +01:00
|
|
|
JavaScript::put($data);
|
2018-05-26 19:58:49 +01:00
|
|
|
}
|
2018-06-02 22:32:26 +01:00
|
|
|
}
|