PageSourceSearch

https://bookswap.fr/assets/useWindowSize-BI8MA0QQ.js

js bookswap.fr collected 2026-09-24 10:46:09 UTC 349 bytes, 1 lines download raw bytes

1import{R as t}from"./chunk-QMGIS6GS-BqmtbF44.js";function s(){const[i,n]=t.useState({width:0,height:0});return(typeof window<"u"?t.useLayoutEffect:t.useEffect)(()=>{const e=()=>{n({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),i}export{s as u};

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.