diff --git a/index.mjs b/index.mjs
index 7a1ee90..673cf5f 100644
--- a/index.mjs
+++ b/index.mjs
@@ -1,3 +1,3 @@
import CookieConsent from "./src/cookie-consent.mjs";
-export default CookieConsent;
\ No newline at end of file
+export default CookieConsent;
diff --git a/src/dialog-tablist.mjs b/src/dialog-tablist.mjs
index a6c2509..c84a178 100644
--- a/src/dialog-tablist.mjs
+++ b/src/dialog-tablist.mjs
@@ -27,10 +27,9 @@ const DialogTabList = (cookieInformation) => {
* `required: false`, because of #3)
* 3. Use the `checked` setting.
*/
- const shouldBeChecked =
- typeof accepted !== "undefined"
- ? accepted
- : required === true
+ const shouldBeChecked = typeof accepted !== "undefined"
+ ? accepted
+ : required === true
? required
: checked;
@@ -96,9 +95,7 @@ const DialogTabList = (cookieInformation) => {
: undefined,
}));
return `
-
+
${cookiesWithState.map(renderTab).join("")}
`;
@@ -127,8 +124,7 @@ const DialogTabList = (cookieInformation) => {
const controls = targetTab ? targetTab.getAttribute("aria-controls") : "";
tabs.forEach((tab) => tab.setAttribute("aria-selected", tab === targetTab));
panels.forEach((panel) =>
- panel.setAttribute("aria-hidden", controls !== panel.id)
- );
+ panel.setAttribute("aria-hidden", controls !== panel.id));
};
/**
@@ -140,8 +136,7 @@ const DialogTabList = (cookieInformation) => {
tabs.forEach((tab) => {
tab.addEventListener("click", (e) => {
e.preventDefault();
- const targetTab =
- tab.getAttribute("aria-selected") === "true" ? null : tab;
+ const targetTab = tab.getAttribute("aria-selected") === "true" ? null : tab;
selectTab({ tabs, panels, targetTab });
});
});
diff --git a/src/dom-toggler.mjs b/src/dom-toggler.mjs
index 05b072d..9453d4a 100644
--- a/src/dom-toggler.mjs
+++ b/src/dom-toggler.mjs
@@ -114,4 +114,4 @@ const DomToggler = (config) => {
};
};
-export default DomToggler;
\ No newline at end of file
+export default DomToggler;
diff --git a/src/event-dispatcher.mjs b/src/event-dispatcher.mjs
index 42a9a72..a27c149 100644
--- a/src/event-dispatcher.mjs
+++ b/src/event-dispatcher.mjs
@@ -36,4 +36,4 @@ const EventDispatcher = () => {
};
-export default EventDispatcher;
\ No newline at end of file
+export default EventDispatcher;
diff --git a/src/preferences.mjs b/src/preferences.mjs
index c70062c..45e9d4f 100644
--- a/src/preferences.mjs
+++ b/src/preferences.mjs
@@ -26,4 +26,4 @@ const Preferences = (prefix) => {
};
};
-export default Preferences;
\ No newline at end of file
+export default Preferences;
diff --git a/src/storage.mjs b/src/storage.mjs
index 8d3a6a2..95fe300 100644
--- a/src/storage.mjs
+++ b/src/storage.mjs
@@ -27,4 +27,4 @@ const Storage = () => {
};
};
-export default Storage;
\ No newline at end of file
+export default Storage;
diff --git a/src/toggle-dialog-visibility.mjs b/src/toggle-dialog-visibility.mjs
index cf3fbb7..3b548d7 100644
--- a/src/toggle-dialog-visibility.mjs
+++ b/src/toggle-dialog-visibility.mjs
@@ -7,4 +7,4 @@ const toggleDialogVisibility = (dialogElement) => {
};
};
-export default toggleDialogVisibility;
\ No newline at end of file
+export default toggleDialogVisibility;
diff --git a/src/utils.mjs b/src/utils.mjs
index 45721fe..61714f6 100644
--- a/src/utils.mjs
+++ b/src/utils.mjs
@@ -23,4 +23,4 @@ export const getEntryByDotString = (object, entryString) => {
}
return undefined;
}, object);
-};
\ No newline at end of file
+};