hnsalert/templates/assets/js/bs-init.js

10 lines
316 B
JavaScript
Raw Normal View History

2023-12-11 15:28:20 +11:00
document.addEventListener('DOMContentLoaded', function() {
var products = document.querySelectorAll('[data-bss-dynamic-product]');
for (var product of products) {
var param = product.dataset.bssDynamicProductParam;
product.dataset.reflowProduct = new URL(location.href).searchParams.get(param)
}
}, false);