MCPcopy Create free account
hub / github.com/error311/FileRise / getCurrentUserKey

Function getCurrentUserKey

public/js/upload.js:136–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134const RESUMABLE_DRAFTS_KEY = 'filr_resumable_drafts_v1';
135
136function getCurrentUserKey() {
137 // Try a few globals; fall back to browser profile
138 const u =
139 (window.currentUser && String(window.currentUser)) ||
140 (window.appUser && String(window.appUser)) ||
141 (window.username && String(window.username)) ||
142 '';
143 return u || 'anon';
144}
145
146function loadResumableDraftsAll() {
147 try {

Callers 1

getUserDraftContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected