(plugins: Plugin[])
| 38 | } |
| 39 | |
| 40 | export async function registerPluginServices(plugins: Plugin[]) { |
| 41 | const seed = defaultContainer({ resizingIframe: ResizingIframe }) |
| 42 | const urlParams = new URLSearchParams(window.location.search) |
| 43 | if (urlParams.get('plugins') === 'none') { |
| 44 | seed.toastInfo('Loading without plugins.') |
| 45 | return seed |
| 46 | } |
| 47 | return await plugins.reduce(async (prior, plugin) => { |
| 48 | return await registerPluginService(await prior, plugin) |
| 49 | }, Promise.resolve(seed)) |
| 50 | } |
no test coverage detected