Skip to content

Commit

Permalink
fix: Fix autoConsentEU by calling render() first
Browse files Browse the repository at this point in the history
  • Loading branch information
replete committed Dec 31, 2024
1 parent a1e747f commit 5580bc9
Show file tree
Hide file tree
Showing 21 changed files with 49 additions and 63 deletions.
2 changes: 1 addition & 1 deletion dist/biscuitman-legacy.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! biscuitman-legacy.js 0.5.4 */
/*! biscuitman-legacy.js 0.5.5 */
.biscuitman {
--ui: 0, 0, 0;
--tx: #444;
Expand Down
8 changes: 4 additions & 4 deletions dist/biscuitman-legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! biscuitman-legacy.js 0.5.4 */
/*! biscuitman-legacy.js 0.5.5 */
(function () {
'use strict';

Expand Down Expand Up @@ -909,6 +909,9 @@

setConsents(loadConsents() || {});

// Render UI
render();

// Optional Non-EU auto-consent
var tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
var isEuropeTimezone = /^(GMT|UTC)$/.test(tz) || /(Europe|BST|CEST|CET|EET|IST|WEST|WET|GMT-1|GMT-2|UTC+1|UTC+2|UTC+3)/.test(tz);
Expand All @@ -917,9 +920,6 @@
displayUI(false);
}

// Render UI
render();

// Wipe matching cookies/localStorages without consent
clearStorages();

Expand Down
2 changes: 1 addition & 1 deletion dist/biscuitman-legacy.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/biscuitman-legacy.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 5580bc9

Please sign in to comment.