Skip to content

Commit

Permalink
Fix JS style issues to comply with ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
undergroundwires committed Dec 28, 2024
1 parent 535b35f commit 530187d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ez-consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ export const ez_consent = (() => { // eslint-disable-line camelcase
return {
injectHtmlAsync: (options) => new Promise((resolve) => {
const html = initializeHtml(options);
document.addEventListener('DOMContentLoaded', // Wait until "document.body" is ready so we make sure we're first element
document.addEventListener(
'DOMContentLoaded', // Wait until "document.body" is ready so we make sure we're first element
() => {
document.body.insertAdjacentHTML('afterbegin', html);
resolve();
});
},
);
}),
injectCss: () => {
const style = document.createElement('style');
Expand Down

0 comments on commit 530187d

Please sign in to comment.