MCPcopy Create free account
hub / github.com/UI5/webcomponents / getSharedResourcesInstance

Function getSharedResourcesInstance

packages/base/src/getSharedResource.ts:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8};
9
10const getSharedResourcesInstance = (): Element | null => {
11 if (typeof document === "undefined") {
12 return null;
13 }
14 return getSingletonElementInstance(`meta[name="ui5-shared-resources"]`, document.head, getMetaDomEl);
15};
16
17/**
18 * Use this method to initialize/get resources that you would like to be shared among UI5 Web Components runtime instances.

Callers 1

getSharedResourceFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…