1
1
import { WINDOW } from '@sentry/browser' ;
2
2
import type { Integration } from '@sentry/types' ;
3
- import { isBrowser } from '@sentry/utils' ;
4
- import { logger } from '@sentry/utils' ;
3
+ import { isBrowser , logger } from '@sentry/utils' ;
5
4
6
5
import {
7
6
ACTOR_LABEL ,
@@ -22,32 +21,9 @@ import { createActorStyles } from './widget/Actor.css';
22
21
import { createShadowHost } from './widget/createShadowHost' ;
23
22
import { createWidget } from './widget/createWidget' ;
24
23
25
- < < < << << HEAD
26
- interface FeedbackConfiguration extends Partial < Omit < FeedbackConfigurationWithDefaults , 'theme' > > {
27
- theme ?: {
28
- dark ?: Partial < FeedbackTheme > ;
29
- light ?: Partial < FeedbackTheme > ;
30
- } ;
31
- }
32
- = === ===
33
- type ElectronProcess = { type ?: string } ;
34
-
35
- // Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them
36
- function isElectronNodeRenderer ( ) : boolean {
37
- return typeof process ! == 'undefined' & & ( process as ElectronProcess ) . type === 'renderer' ;
38
- }
39
- /**
40
- * Returns true if we are in the browser.
41
- */
42
- function isBrowser ( ) : boolean {
43
- // eslint-disable-next-line no-restricted-globals
44
- return typeof window !== 'undefined' && ( ! isNodeEnv ( ) || isElectronNodeRenderer ( ) ) ;
45
- }
24
+ const doc = WINDOW . document ;
46
25
47
26
type FeedbackConfiguration = Partial < FeedbackConfigurationWithDefaults > ;
48
- >>> > >>> 5 fa9a4abb ( ref : extract widget creation to function , allow handling of multiple widgets )
49
-
50
- const doc = WINDOW . document ;
51
27
52
28
/**
53
29
* Feedback integration. When added as an integration to the SDK, it will
0 commit comments