Skip to content

Commit

Permalink
Fix missing dot class selector
Browse files Browse the repository at this point in the history
  • Loading branch information
magiccart committed Dec 10, 2021
1 parent 2689780 commit b461f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/web/js/magicproduct.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ define([
var selector = $(this).attr('class').split(" ");
selector.forEach(item => {
if(item.indexOf('alo-content-') === 0) {
selector = item.replace(/[.]/g, ' ').trim();
selector = '.' + item.replace(/[.]/g, ' ').trim();
}
});
$(this).magicproduct({selector: selector}); // don't use $(this)
Expand Down

0 comments on commit b461f9c

Please sign in to comment.