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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user