diff --git a/src/app/app.js b/src/app/app.js index 11cd775a0..14fc9cb02 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -26,7 +26,6 @@ import 'angular-cookies'; // styles import 'amstock3/amcharts/style.css'; import 'bootstrap/dist/css/bootstrap.css'; -import 'font-awesome/css/font-awesome.css'; import 'leaflet/dist/leaflet.css'; import 'leaflet.markercluster/dist/MarkerCluster.Default.css'; import 'angular-advanced-searchbox/dist/angular-advanced-searchbox.min.css'; diff --git a/src/components/cookies-banner/cookies-banner.directive.js b/src/components/cookies-banner/cookies-banner.directive.js index 9e836d22b..f72ee5f61 100644 --- a/src/components/cookies-banner/cookies-banner.directive.js +++ b/src/components/cookies-banner/cookies-banner.directive.js @@ -20,9 +20,14 @@ const directiveCtrl = ($scope, $cookies) => { $scope.visible = true; const cookieKey = 'cookiesBannerConfirmed'; + // setting the expiredate to 2years ahead + const expireDate = new Date(); + const expireDays = 365 * 2; + expireDate.setDate(expireDate.getDate() + expireDays); + $scope.clicked = () => { $scope.visible = false; - $cookies.put(cookieKey, 'true'); + $cookies.put(cookieKey, 'true', { expires: expireDate }); }; const result = $cookies.get(cookieKey);