Files
2024-10-25 14:16:28 +02:00

30 lines
767 B
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 2019 ModuleFactory.co
*
* @author ModuleFactory.co <info@modulefactory.co>
* @copyright 2019 ModuleFactory.co
* @license ModuleFactory.co Commercial License
*/
var FSAU = FSAU || { };
FSAU.hash = '';
$(document).ready(function(){
FSAU.anchor = window.location.hash;
if (FSAU.anchor) {
var refresh_url = false;
for (var anchor in FSAU.product_urls) {
if (anchor == FSAU.anchor) {
if (!FSAU.product_urls.hasOwnProperty(anchor)) {
continue;
}
refresh_url = FSAU.product_urls[anchor];
}
}
if (refresh_url) {
prestashop.emit('updateProduct', { reason: { productUrl: refresh_url }});
}
}
});