1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 00:29:52 +02:00

Use es6 on visual tests (#36915)

This commit is contained in:
GeoSot
2022-09-22 01:48:23 +03:00
committed by GitHub
parent 37e2e7e124
commit 27f20257eb
4 changed files with 30 additions and 51 deletions

View File

@@ -33,10 +33,7 @@
<script src="../../../dist/js/bootstrap.bundle.js"></script>
<script>
var popoverElements = document.querySelectorAll('[data-bs-toggle="popover"]')
for (const popoverEl of popoverElements) {
new bootstrap.Popover(popoverEl)
}
document.querySelectorAll('[data-bs-toggle="popover"]').forEach(popoverEl => new bootstrap.Popover(popoverEl))
</script>
</body>
</html>