MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / _createShadow

Function _createShadow

packages/feedback/src/core/integration.ts:200–211  ·  view source on GitHub ↗
(options: FeedbackInternalOptions)

Source from the content-addressed store, hash-verified

198 * Get the shadow root where we will append css
199 */
200 const _createShadow = (options: FeedbackInternalOptions): ShadowRoot => {
201 if (!_shadow) {
202 const host = DOCUMENT.createElement('div');
203 host.id = String(options.id);
204 DOCUMENT.body.appendChild(host);
205
206 _shadow = host.attachShadow({ mode: 'open' });
207 _mainStyle = createMainStyles(options);
208 _shadow.appendChild(_mainStyle);
209 }
210 return _shadow;
211 };
212
213 const _loadAndRenderDialog = async (
214 options: FeedbackInternalOptions,

Callers 2

_loadAndRenderDialogFunction · 0.85
_createActorFunction · 0.85

Calls 1

createMainStylesFunction · 0.90

Tested by

no test coverage detected