MCPcopy Create free account
hub / github.com/chavyleung/scripts / getCurSessions

Function getCurSessions

box/switcher/box.switcher.js:102–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102function getCurSessions() {
103 const sessionstr = $.getdata($.KEY_curSessions)
104 return ![undefined, null, 'null', ''].includes(sessionstr) ? JSON.parse(sessionstr) : {}
105}
106
107function showmsg() {
108 return new Promise((resolve) => {

Callers 1

execSwitchFunction · 0.70

Calls 1

getdataMethod · 0.45

Tested by

no test coverage detected