mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-04 13:58:39 +01:00
Simplify assets configuration.
This commit is contained in:
@@ -35,7 +35,10 @@ class ContaoAssets implements Assets
|
||||
break;
|
||||
|
||||
case static::TYPE_FILE:
|
||||
$script .= '|static';
|
||||
if (!\Config::get('debugMode')) {
|
||||
$script .= '|static';
|
||||
}
|
||||
|
||||
// no break
|
||||
|
||||
default:
|
||||
@@ -54,7 +57,9 @@ class ContaoAssets implements Assets
|
||||
break;
|
||||
|
||||
case static::TYPE_FILE:
|
||||
$stylesheet .= '|all|static';
|
||||
if (!\Config::get('debugMode')) {
|
||||
$stylesheet .= '|all|static';
|
||||
}
|
||||
// no break
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user