diff options
| author | Johann-S <[email protected]> | 2021-02-17 08:22:44 +0100 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2021-09-15 16:42:04 +0200 |
| commit | d73d835380f793ab7ca40b82a6ce09ba8f5946c5 (patch) | |
| tree | 7c98a87a596ae937983498980afb6e2fa239ab53 /js/tests | |
| parent | bdfb4cc54d29c0c7bcd7944d3c8de2e1cd41bb6c (diff) | |
| download | bootstrap-jo-ssr-friendly.tar.xz bootstrap-jo-ssr-friendly.zip | |
being ssr friendly when accessing dom objectsjo-ssr-friendly
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/integration/bundle-modularity.js | 1 | ||||
| -rw-r--r-- | js/tests/integration/bundle.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/js/tests/integration/bundle-modularity.js b/js/tests/integration/bundle-modularity.js index 8546141b1..ecfd2335f 100644 --- a/js/tests/integration/bundle-modularity.js +++ b/js/tests/integration/bundle-modularity.js @@ -1,6 +1,7 @@ import Tooltip from '../../dist/tooltip' import '../../dist/carousel' +// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope window.addEventListener('load', () => { [].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]')) .map(tooltipNode => new Tooltip(tooltipNode)) diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js index 452088a7d..8c5442626 100644 --- a/js/tests/integration/bundle.js +++ b/js/tests/integration/bundle.js @@ -1,5 +1,6 @@ import { Tooltip } from '../../../dist/js/bootstrap.esm.js' +// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope window.addEventListener('load', () => { [].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]')) .map(tooltipNode => new Tooltip(tooltipNode)) |
