mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 02:55:30 +02:00
optimized disable asset pipeline logic
This commit is contained in:
@@ -107,9 +107,7 @@ class AdminPlugin extends Plugin
|
||||
// Only activate admin if we're inside the admin path.
|
||||
if ($this->active) {
|
||||
$this->initializeAdmin();
|
||||
}
|
||||
|
||||
if ($this->isAdmin()) {
|
||||
// Disable Asset pipelining
|
||||
$this->config->set('system.assets.css_pipeline', false);
|
||||
$this->config->set('system.assets.js_pipeline', false);
|
||||
|
||||
Reference in New Issue
Block a user