MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / processPendingIntents

Function processPendingIntents

src/handlers/intent.js:107–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 * @returns {Promise<void>}
106 */
107export async function processPendingIntents() {
108 if (sessionStorage.getItem("isfilesRestored") !== "true") return;
109
110 // Process all pending intents
111 while (pendingIntents.length > 0) {
112 const pendingIntent = pendingIntents.shift();
113 try {
114 await openFile(pendingIntent.url, pendingIntent.options);
115 } catch (error) {
116 helpers.error(error);
117 }
118 }
119}
120
121class IntentEvent {
122 module;

Callers 1

main.jsFile · 0.90

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected