MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / setSession

Method setSession

static/local.ts:92–100  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

90 }
91
92 private setSession(key: string, value: string): boolean {
93 try {
94 window.sessionStorage.setItem(prefix + key, value);
95 return true;
96 } catch {
97 // Swallow up any security exceptions...
98 }
99 return false;
100 }
101
102 set(key: string, value: string): boolean {
103 const setBySession = this.setSession(key, value);

Callers 1

setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected