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

Function getUserDraftContext

public/js/upload.js:284–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282}
283
284function getUserDraftContext() {
285 const all = loadResumableDraftsAll();
286 const userKey = getCurrentUserKey();
287 if (!all[userKey] || typeof all[userKey] !== 'object') {
288 all[userKey] = {};
289 }
290 const drafts = all[userKey];
291 return { all, userKey, drafts };
292}
293
294// Upsert / update a record for this resumable file
295function upsertResumableDraft(file, percent) {

Callers 4

upsertResumableDraftFunction · 0.85
clearResumableDraftFunction · 0.85
showResumableDraftBannerFunction · 0.85

Calls 2

loadResumableDraftsAllFunction · 0.85
getCurrentUserKeyFunction · 0.85

Tested by

no test coverage detected