- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
2 lines
904 B
JavaScript
2 lines
904 B
JavaScript
import{L as e,r as i,u as n}from"./core-CJ4hMzNX.js";let o="example-module",t=null,r=null;const l=Object.freeze(Object.defineProperty({__proto__:null,destroy:function(){e.info("[example-module] destroy"),t&&(window.removeEventListener("resize",t),t=null),n(o),r&&"function"==typeof r.cleanup&&r.cleanup(),r=null},init:function(n={},l=null){e.info("[example-module] init"),r=l,r&&(r.register("windowSize",{width:window.innerWidth,height:window.innerHeight}),r.register("scrollPosition",{x:0,y:0}),r.register("isVisible",!0)),t=()=>{const i={width:window.innerWidth,height:window.innerHeight};e.info("Fenstergröße geändert:",i),r&&r.set("windowSize",i)},window.addEventListener("resize",t),i(o,()=>{const e=window.scrollY,i=window.scrollX;if(r){const n=r.get("scrollPosition");n.x===i&&n.y===e||r.set("scrollPosition",{x:i,y:e})}},{autoStart:!0})}},Symbol.toStringTag,{value:"Module"}));export{l as _};
|