2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03: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
+1 -4
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>