Skip to content

Commit 4373ab5

Browse files
committed
Fix event name prefix in MJS (missed from last release)
1 parent 2397132 commit 4373ab5

14 files changed

+52
-62
lines changed

__tests__/e2e.tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ appVersions.forEach(([filename])=>{
9090

9191
test('should hide UI and save consents correctly after selecting some sections', async () => {
9292
await page.click('button[data-id=settings]')
93-
await page.click('[for=biscuitman_analytics]')
94-
await page.click('[for=biscuitman_functional]')
95-
await page.click('[for=biscuitman_performance]')
93+
await page.click('[for=bm_analytics]')
94+
await page.click('[for=bm_functional]')
95+
await page.click('[for=bm_performance]')
9696

9797
await page.click('button[data-id=save]')
9898

dist/biscuitman.css

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

dist/biscuitman.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/*! biscuitman.js 0.4.0 */
2-
((d, w, O, h, bm)=>{
1+
/*! biscuitman.js 0.4.1 */
2+
((d, w, O, h)=>{
33
const defaults = {
44
key: 'myconsent',
55
global: 'Consent',
@@ -28,7 +28,7 @@
2828
const ui = d.createElement('div');
2929
let dialog;
3030
function render() {
31-
ui.classList.add(bm);
31+
ui.classList.add('biscuitman');
3232
ui.innerHTML = `
3333
<article>
3434
<b>${o.title}</b>
@@ -60,8 +60,8 @@
6060
<details>
6161
<summary>
6262
<b>${o[`${section}Title`]}</b>
63-
<label for="${bm}_${section}" class="${disabledProp} ${checkedProp}">
64-
<input type="checkbox" id="${bm}_${section}" ${disabledProp} ${checkedProp} data-s="${section}"/>
63+
<label for="bm_${section}" class="${disabledProp} ${checkedProp}">
64+
<input type="checkbox" id="bm_${section}" ${disabledProp} ${checkedProp} data-s="${section}"/>
6565
</label>
6666
<p>${o[`${section}Message`]}</p>
6767
</summary>
@@ -101,7 +101,6 @@
101101
};
102102
const applyCssClasses = ()=>{
103103
let { consentTime, ...consents } = getConsents();
104-
// if (!consentTime) h.className = h.className.replace(/\bbm-[^\s]+(\s+|$)/g, '').trim();
105104
if (!consentTime) consents = O.fromEntries(o.sections.slice(1).map((sectionName)=>[
106105
sectionName,
107106
false
@@ -314,4 +313,4 @@
314313
});
315314
openModal();
316315
};
317-
})(document, window, Object, document.documentElement, 'biscuitman');
316+
})(document, window, Object, document.documentElement);

dist/biscuitman.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.

0 commit comments

Comments
 (0)