gl-website-deployer/vendor/twbs/bootstrap/js/tests/integration/bundle-modularity.js

10 lines
305 B
JavaScript
Raw Permalink Normal View History

2024-11-19 08:02:04 +01:00
/* eslint-disable import/extensions, import/no-unassigned-import */
import Tooltip from '../../dist/tooltip'
import '../../dist/carousel'
window.addEventListener('load', () => {
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
.map(tooltipNode => new Tooltip(tooltipNode))
})