Skip to content

Commit

Permalink
fix: cookieconsent may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnbroder authored and tinesoft committed Dec 7, 2019
1 parent 43717bc commit 290cac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/cookieconsent.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class NgcCookieConsentService {
*/
init(config: NgcCookieConsentConfig): void {

if (this.window) { // For Angular Universal suport
if (this.window && this.window.cookieconsent) { // For Angular Universal suport
this.cookieconsent = this.window.cookieconsent;

this.config = config;
Expand Down

0 comments on commit 290cac3

Please sign in to comment.