don't load css in backend, only in sandbox

This commit is contained in:
Dennis Eichhorn 2019-05-27 23:48:36 +02:00
parent dba3448913
commit 3b6a903db4

View File

@ -167,10 +167,6 @@ final class BackendController extends Controller
$tcoll['template'] = $tMedia;
} elseif (StringUtils::endsWith($lowerPath, '.css')) {
$tcoll['css'] = $tMedia;
/** @var \phpOMS\Model\Html\Head $head */
$head = $response->get('Content')->getData('head');
$head->addAsset(AssetType::CSS, $request->getUri()->getBase() . $tMedia->getPath());
} elseif (StringUtils::endsWith($lowerPath, '.js')) {
$tcoll['js'] = $tMedia;
} elseif (StringUtils::endsWith($lowerPath, '.sqlite') || StringUtils::endsWith($lowerPath, '.db')) {