PageSourceSearch

https://store.comu.com/cdn/shop/t/147/assets/comu-google-login-prompt.js?v=134473345365031986531791475842

js comu.com collected 2026-10-09 04:44:01 UTC 2,034 bytes, 2 lines download raw bytes

1(function(){"use strict";var STORAGE_KEY="comu:google-login-dismissed";function isDismissed(dismissDays){try{var raw=localStorage.getItem(STORAGE_KEY);if(!raw)return!1;var dismissedAt=new Date(raw).getTime();if(isNaN(dismissedAt))return!1;var expiryMs=dismissDays*24*60*60*1e3;return Date.now()-dismissedAt<expiryMs}catch(e){return!1}}function dismiss(){try{localStorage.setItem(STORAGE_KEY,new Date().toISOString())}catch(e){}}function initPrompt(root){if(!(!root||root.dataset.comuGlpReady==="true")){root.dataset.comuGlpReady="true";var delay=parseInt(root.getAttribute("data-delay")||"5",10)*1e3,dismissDays=parseInt(root.getAttribute("data-dismiss-days")||"7",10),closeBtn=root.querySelector("[data-comu-glp-close]");closeBtn&&closeBtn.addEventListener("click",function(){root.hidden=!0,dismiss()});var actionBtn=root.querySelector("[data-comu-glp-action]");actionBtn&&actionBtn.addEventListener("click",function(){dismiss()}),isDismissed(dismissDays)||setTimeout(function(){root.hidden=!1,bindScrollHide(root)},delay)}}function bindScrollHide(root){var lastY=window.pageYOffset,hidden=!1,ticking=!1;window.addEventListener("scroll",function(){ticking||hidden||(ticking=!0,requestAnimationFrame(function(){if(ticking=!1,!(window.innerWidth>768||root.hidden)){var y=window.pageYOffset;y>lastY&&y>50&&(root.classList.add("comu-glp--scroll-hidden"),hidden=!0),lastY=y}}))},{passive:!0})}function initAll(scope){var container=scope||document,roots=container.querySelectorAll("[data-comu-google-login-prompt]");Array.prototype.forEach.call(roots,initPrompt)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){initAll()}):initAll(),document.addEventListener("shopify:section:load",function(event){initAll(event.target)}),document.addEventListener("shopify:section:select",function(event){var root=event.target.querySelector("[data-comu-google-login-prompt]");root&&(root.hidden=!1)})})();
2//# sourceMappingURL=/cdn/shop/t/147/assets/comu-google-login-prompt.js.map?v=134473345365031986531791475842

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.