MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / registerPluginServices

Function registerPluginServices

app/src/pluginManager.ts:40–50  ·  view source on GitHub ↗
(plugins: Plugin[])

Source from the content-addressed store, hash-verified

38}
39
40export 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}

Callers 1

topLevelAwait.tsFile · 0.90

Calls 2

defaultContainerFunction · 0.90
registerPluginServiceFunction · 0.70

Tested by

no test coverage detected