MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / #parseCookies

Method #parseCookies

www/js/_hyperscript-max.js:1910–1916  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1908 // src/core/runtime/cookies.js
1909 var CookieJar = class {
1910 #parseCookies() {
1911 if (!document.cookie) return [];
1912 return document.cookie.split("; ").map((entry) => {
1913 var eq = entry.indexOf("=");
1914 return { name: entry.slice(0, eq), value: decodeURIComponent(entry.slice(eq + 1)) };
1915 });
1916 }
1917 get(target, prop) {
1918 if (prop === "then") {
1919 return null;

Callers 1

getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected