... |
... |
@@ -93,7 +93,14 @@ class TemplateListener
|
93 |
93 |
|
94 |
94 |
$GLOBALS['TL_CSS'][] = 'system/modules/eSM_cookieconsent/assets/css/cc_style_override.css|screen';
|
95 |
95 |
|
96 |
|
- $strInject = '<script src="'.\Environment::get('path').'/system/modules/eSM_cookieconsent/assets/js/lib/cookieconsent.min.js"></script>';
|
|
96 |
+ $strJsFilename = 'cookieconsent';
|
|
97 |
+
|
|
98 |
+ if (\System::getContainer()->getParameter('kernel.environment') != 'dev')
|
|
99 |
+ {
|
|
100 |
+ $strJsFilename .= '.min';
|
|
101 |
+ }
|
|
102 |
+
|
|
103 |
+ $strInject = '<script src="'.\Environment::get('path').'/system/modules/eSM_cookieconsent/assets/js/lib/'.$strJsFilename.'.js"></script>';
|
97 |
104 |
|
98 |
105 |
$strInject .= $Template->parse();
|
99 |
106 |
|