Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f511f5e6f |
@@ -1,7 +1,14 @@
|
|||||||
(function () {
|
(function () {
|
||||||
var KEY = 'cookie_consent';
|
var KEY = 'cookie_consent';
|
||||||
var banner = document.getElementById('cookie-banner');
|
var banner = document.getElementById('cookie-banner');
|
||||||
if (!banner) return;
|
if (!banner) {
|
||||||
|
console.error(
|
||||||
|
'[hugo_cookie_consent] #cookie-banner not found in the DOM. ' +
|
||||||
|
'Did you include the hugo_cookie_consent/banner.html partial in your site\'s layout? ' +
|
||||||
|
'See the module README ("Installation in your Hugo site").'
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateStatus();
|
updateStatus();
|
||||||
|
|
||||||
var consent = localStorage.getItem(KEY);
|
var consent = localStorage.getItem(KEY);
|
||||||
|
|||||||
Reference in New Issue
Block a user