Merge pull request #31 from HideyoshiNakazone/fixes-cookie-popup
Fixes cookie popup
This commit is contained in:
11
angular.json
11
angular.json
@@ -75,9 +75,14 @@
|
|||||||
"defaultConfiguration": "production"
|
"defaultConfiguration": "production"
|
||||||
},
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-builders/custom-webpack:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"configurations": {
|
||||||
"browserTarget": "frontend-hideyoshi.com:build:build"
|
"production": {
|
||||||
|
"browserTarget": "frontend-hideyoshi.com:build:production"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"browserTarget": "frontend-hideyoshi.com:build:development"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export class AppComponent implements OnInit {
|
|||||||
let cookieConsentStatus = this.cookieConsentService.getCookieConsentStatusFromLocalStorage();
|
let cookieConsentStatus = this.cookieConsentService.getCookieConsentStatusFromLocalStorage();
|
||||||
|
|
||||||
if (cookieConsentStatus) {
|
if (cookieConsentStatus) {
|
||||||
this.ccService.fadeOut();
|
this.ccService.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.cookieStatusChangeSubscription = this.ccService.statusChange$.subscribe(
|
this.cookieStatusChangeSubscription = this.ccService.statusChange$.subscribe(
|
||||||
|
|||||||
Reference in New Issue
Block a user