Registers a StorefrontProvider.
Error if a provider with the same id already exists.
id
Error if Workspace Platform is not initialized.
import { Storefront, type StorefrontProvider } from "@openfin/workspace";const myStorefrontProvider: StorefrontProvider = { id: "my-storefront-id" title: "My StorefrontProvider" icon: "https://cdn.openfin.co/demos/notifications/generator/images/icon-blue.png", getApps: () => {...}, getNavigation: () => {...}, getLandingPage: () => {...}, getFooter: () => {...}, launchApp: () => {...}};await Storefront.register(myStorefrontProvider); Copy
import { Storefront, type StorefrontProvider } from "@openfin/workspace";const myStorefrontProvider: StorefrontProvider = { id: "my-storefront-id" title: "My StorefrontProvider" icon: "https://cdn.openfin.co/demos/notifications/generator/images/icon-blue.png", getApps: () => {...}, getNavigation: () => {...}, getLandingPage: () => {...}, getFooter: () => {...}, launchApp: () => {...}};await Storefront.register(myStorefrontProvider);
the implementation of a Storefront provider.
Registers a StorefrontProvider.
Throws
Error if a provider with the same
idalready exists.Throws
Error if Workspace Platform is not initialized.
Example