Skip to content

Commit f179827

Browse files
Merge pull request #6 from codeplaysoftware/cookie-reject-button-fix
Cookie/Storage Policy Popup Fix
2 parents 3630663 + e026a42 commit f179827

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/shared/services/state.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ export class StateService {
9898
if (!state.cookiesAccepted) {
9999
this.storageService.clear();
100100
this.storageService.set('st-cookies-accepted', state.cookiesAccepted);
101+
this.stateSubject.next(state);
101102
return ;
102103
}
103104

104105
this.storageService.set('st-cookies-accepted', state.cookiesAccepted);
105106
this.storageService.set('st-dark-mode-enabled', state.darkModeEnabled);
106107
this.storageService.set('st-enable-tracking', state.enableTracking);
108+
107109
this.stateSubject.next(state);
108110
}
109111
}

0 commit comments

Comments
 (0)