hnsalert/templates/assets/js/bs-init.js
Nathan Woodburn eb4e2afc5f
Some checks failed
Build Docker / Build Docker (push) Failing after 18s
feat: Add initial code
2023-12-11 15:28:20 +11:00

10 lines
316 B
JavaScript

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);