Skip to content

Commit 5580bc9

Browse files
committed
fix: Fix autoConsentEU by calling render() first
1 parent a1e747f commit 5580bc9

21 files changed

Lines changed: 49 additions & 63 deletions

dist/biscuitman-legacy.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! biscuitman-legacy.js 0.5.4 */
1+
/*! biscuitman-legacy.js 0.5.5 */
22
.biscuitman {
33
--ui: 0, 0, 0;
44
--tx: #444;

dist/biscuitman-legacy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! biscuitman-legacy.js 0.5.4 */
1+
/*! biscuitman-legacy.js 0.5.5 */
22
(function () {
33
'use strict';
44

@@ -909,6 +909,9 @@
909909

910910
setConsents(loadConsents() || {});
911911

912+
// Render UI
913+
render();
914+
912915
// Optional Non-EU auto-consent
913916
var tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
914917
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);
@@ -917,9 +920,6 @@
917920
displayUI(false);
918921
}
919922

920-
// Render UI
921-
render();
922-
923923
// Wipe matching cookies/localStorages without consent
924924
clearStorages();
925925

dist/biscuitman-legacy.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/biscuitman-legacy.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)