MCPcopy Create free account
hub / github.com/Eltaurus-Lt/CourseDump2022 / loadQueue

Function loadQueue

menu.js:169–180  ·  view source on GitHub ↗
(text = false)

Source from the content-addressed store, hash-verified

167}
168
169async function loadQueue(text = false) {
170 let queue = await loadFromStorage(`queue${text ? '-text' : ''}`);
171
172 //initiate queues if accessed for the first time
173 if (!queue) {
174 queue = [];
175 saveToStorage({ 'queue': [] });
176 saveToStorage({ 'queue-text': [] });
177 }
178
179 return queue;
180}
181
182document.addEventListener('DOMContentLoaded', () => {setTimeout(async () => {
183

Callers 3

updCountersFunction · 0.85
addToQueueFunction · 0.85
menu.jsFile · 0.85

Calls 2

loadFromStorageFunction · 0.85
saveToStorageFunction · 0.85

Tested by

no test coverage detected