()
| 105 | * @returns {Promise<void>} |
| 106 | */ |
| 107 | export 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 | |
| 121 | class IntentEvent { |
| 122 | module; |