misc_pterodactyl-panel/app/Traits/Controllers/PlainJavascriptInjection.php

23 lines
330 B
PHP
Raw Normal View History

<?php
/**
* Created by PhpStorm.
* User: Stan
* Date: 26-5-2018
* Time: 20:56.
*/
namespace Pterodactyl\Traits\Controllers;
use JavaScript;
trait PlainJavascriptInjection
{
/**
* Injects statistics into javascript.
*/
public function injectJavascript($data)
{
Javascript::put($data);
}
}