mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:55:13 +00:00
Merge branch 'dev' of ../rebble.net into dev
This commit is contained in:
commit
11f5174fdd
1 changed files with 0 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Code\Module;
|
|
||||||
|
|
||||||
use Code\Web\Controller;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* serve javascript files from addon directory
|
|
||||||
*/
|
|
||||||
class Addon extends Controller
|
|
||||||
{
|
|
||||||
|
|
||||||
public function init()
|
|
||||||
{
|
|
||||||
|
|
||||||
if (file_exists(App::$cmd) && str_contains(App::$cmd, '.js')) {
|
|
||||||
header("Content-Type: text/javascript");
|
|
||||||
Stdio::fcopy(App::$cmd, 'php://output');
|
|
||||||
killme();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue