1(function () { 2 let handleResize = null; 3 4 window.addResizeListener = (dotNetObject) => { 5 if (handleResize) { 6 window.removeEventListener("resize", handleResize); 7 } 8 9 handleResize = () => { 10 const width = window.innerWidth; 11 dotNetObject.invokeMethodAsync("HandleResize", width); 12 }; 13 14 window.addEventListener("resize", handleResize); 15 handleResize(); 16 }; 17 18 window.removeResizeListener = () => { 19 if (!handleResize) { 20 return; 21 } 22 23 window.removeEventListener("resize", handleResize); 24 handleResize = null; 25 }; 26 27 window.getWindowWidth = function () { 28 return window.innerWidth; 29 }; 30})();
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.