Skip to content

Commit

Permalink
Codesniff commit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
siddwarkhedkar committed Sep 26, 2023
1 parent db8d488 commit 0460a02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions view/frontend/templates/product/viewed.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
?>

<script text="text/javascript">
!function(){if(!window.klaviyo){window._klOnsite=window._klOnsite||[];try{window.klaviyo=new Proxy({},{get:function(n,i){return"push"===i?function(){var n;(n=window._klOnsite).push.apply(n,arguments)}:function(){for(var n=arguments.length,o=new Array(n),w=0;w<n;w++)o[w]=arguments[w];var t="function"==typeof o[o.length-1]?o.pop():void 0,e=new Promise((function(n){window._klOnsite.push([i].concat(o,[function(i){t&&t(i),n(i)}]))}));return e}}})}catch(n){window.klaviyo=window.klaviyo||[],window.klaviyo.push=function(){var n;(n=window._klOnsite).push.apply(n,arguments)}}}}();

require(['domReady!'], function () {
require(['domReady!'], function () {

var klaviyo = window.klaviyo || [];
klaviyo.push(['track', 'Viewed Product', <?= $block->getViewedProductJson() ?>]);
Expand Down

0 comments on commit 0460a02

Please sign in to comment.