()
| 68 | } |
| 69 | |
| 70 | async function loadUIPlugins() { |
| 71 | try { |
| 72 | const res = await fetch("/get/ui_plugins") |
| 73 | if (!res.ok) { |
| 74 | console.error(`Error HTTP${res.status} while loading plugins list. - ${res.statusText}`) |
| 75 | return |
| 76 | } |
| 77 | const plugins = await res.json() |
| 78 | const loadingPromises = plugins.map(loadScript) |
| 79 | return await Promise.allSettled(loadingPromises) |
| 80 | } catch (e) { |
| 81 | console.log("error fetching plugin paths", e) |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | |
| 86 | /* PLUGIN MANAGER */ |