mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 21:38:14 +01:00
16 lines
325 B
PHP
16 lines
325 B
PHP
<?php
|
|
|
|
include 'bootstrap.php';
|
|
|
|
if (!isset($_GET['type'])) {
|
|
$_GET['type'] = 'js';
|
|
}
|
|
|
|
if ($_GET['type'] == 'css') {
|
|
header('content-type', 'text/css');
|
|
$debugbarRenderer->dumpCssAssets();
|
|
} else if ($_GET['type'] == 'js') {
|
|
header('content-type', 'text/javascript');
|
|
$debugbarRenderer->dumpJsAssets();
|
|
}
|