diff --git a/apps/maarch_entreprise/index.php b/apps/maarch_entreprise/index.php index f42311e95dafd50ae118a1d345c6f48b29a750aa..40f274d4d0beb73d9c68c85247cf77ed168c4109 100644 --- a/apps/maarch_entreprise/index.php +++ b/apps/maarch_entreprise/index.php @@ -387,7 +387,7 @@ if (file_exists($path)) { <?php if (PROD_MODE) { ?> -<script src="js/angular/main.bundle.min.js"></script> +<!--script src="js/angular/main.bundle.min.js"></script--> <?php } else { ?> diff --git a/apps/maarch_entreprise/merged_jsAbstract.php b/apps/maarch_entreprise/merged_jsAbstract.php index 76d5ea4db50d06941e4030831c8653f2d75dd935..ef148f4f6b5218438ddc4e4beea851eead6976eb 100644 --- a/apps/maarch_entreprise/merged_jsAbstract.php +++ b/apps/maarch_entreprise/merged_jsAbstract.php @@ -64,6 +64,14 @@ class MergedJsAbstract { readfile('node_modules/systemjs/dist/system.src.js'); readfile('apps/maarch_entreprise/js/angular/systemjs.config.js'); + if (!empty($_SESSION['user'])) { + if (PROD_MODE) { + readfile('apps/maarch_entreprise/js/angular/main.bundle.min.js'); + } else { + readfile('apps/maarch_entreprise/js/angular/main.js'); + } + } + echo "\n"; }