Skip to content

Commit 8b09e09

Browse files
committed
chore: we'll use appendChild here for browser compatibility
it's just a very small amount of versions that support Service Workers, but not .append, but hey …
1 parent 3d977d4 commit 8b09e09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demo/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ const addDynamicContent = (event) => {
2626
iframeElement.setAttribute('width', '320');
2727
iframeElement.setAttribute('height', '180');
2828

29+
/* eslint-disable unicorn/prefer-dom-node-append */
2930
divElement.appendChild(imageElement);
3031
divElement.appendChild(iframeElement);
32+
/* eslint-enable unicorn/prefer-dom-node-append */
3133

3234
document.querySelector('main').insertAdjacentElement('beforeend', divElement);
3335

0 commit comments

Comments
 (0)