10 lines
316 B
JavaScript
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);
|