1 wiersz
1.0 KiB
Plaintext
1 wiersz
1.0 KiB
Plaintext
{"version":3,"file":"getCookie.min.js","sources":["cookies - Copy/getCookie.js"],"sourcesContent":["const getCookie = (name) => {\r\n name = name + \"=\";\r\n let decodedCookie = decodeURIComponent(document.cookie);\r\n let cookie = decodedCookie.split(\";\");\r\n\r\n for (let i = 0; i < cookie.length; i++) {\r\n let c = cookie[i];\r\n while (c.charAt(0) === \" \") {\r\n c = c.substring(1);\r\n }\r\n if (c.indexOf(name) === 0) {\r\n return c.substring(name.length, c.length);\r\n }\r\n }\r\n return \"\";\r\n};\r\n\r\nexport default getCookie;\r\n"],"names":["getCookie","name","let","cookie","decodeURIComponent","document","split","i","length","c","charAt","substring","indexOf"],"mappings":"AAAA,MAAMA,UAAY,IAChBC,GAAc,IACdC,IACIC,EADgBC,mBAAmBC,SAASF,MAAM,EAC3BG,MAAM,GAAG,EAEpC,IAAKJ,IAAIK,EAAI,EAAGA,EAAIJ,EAAOK,OAAQD,CAAC,GAAI,CACtCL,IAAIO,EAAIN,EAAOI,GACf,KAAuB,MAAhBE,EAAEC,OAAO,CAAC,GACfD,EAAIA,EAAEE,UAAU,CAAC,EAEnB,GAAwB,IAApBF,EAAEG,QAAQX,CAAI,EAChB,OAAOQ,EAAEE,UAAUV,EAAKO,OAAQC,EAAED,MAAM,CAE5C,CACA,MAAO,EACT,iBAEeR"} |