MCPcopy Create free account
hub / github.com/InverseUI/InverseUI-Recorder / mapSameSite

Function mapSameSite

util/session_utils.js:138–144  ·  view source on GitHub ↗

* Map Chrome sameSite values to Playwright format

(sameSite)

Source from the content-addressed store, hash-verified

136 * Map Chrome sameSite values to Playwright format
137 */
138function mapSameSite(sameSite) {
139 if (!sameSite) return 'Lax';
140 const value = sameSite.toLowerCase();
141 if (value.includes('strict')) return 'Strict';
142 if (value.includes('none') || value.includes('no_restriction')) return 'None';
143 return 'Lax';
144}
145
146/**
147 * Check if localStorage contains authentication tokens

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected