(action, description = '')
| 723 | } |
| 724 | |
| 725 | saveCookieConsent (action, description = '') { |
| 726 | // Save cookie consent to user's consentHistory |
| 727 | // action: 'allow', 'deny', or 'dismiss' |
| 728 | const consentHistory = _.clone(this.get('consentHistory')) || [] |
| 729 | consentHistory.push({ |
| 730 | action, |
| 731 | date: new Date(), |
| 732 | type: 'cookies', |
| 733 | description, |
| 734 | }) |
| 735 | this.set('consentHistory', consentHistory) |
| 736 | } |
| 737 | |
| 738 | getLatestCookieConsent () { |
| 739 | // Get the most recent cookie consent from consentHistory |
no test coverage detected