Skip to content

Commit 267ba37

Browse files
committed
missed this conflict
1 parent 2815e9b commit 267ba37

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

packages/feedback/src/integration.ts

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { WINDOW } from '@sentry/browser';
22
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';
54

65
import {
76
ACTOR_LABEL,
@@ -22,32 +21,9 @@ import { createActorStyles } from './widget/Actor.css';
2221
import { createShadowHost } from './widget/createShadowHost';
2322
import { createWidget } from './widget/createWidget';
2423

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;
4625

4726
type FeedbackConfiguration = Partial<FeedbackConfigurationWithDefaults>;
48-
>>>>>>> 5fa9a4abb (ref: extract widget creation to function, allow handling of multiple widgets)
49-
50-
const doc = WINDOW.document;
5127

5228
/**
5329
* Feedback integration. When added as an integration to the SDK, it will

0 commit comments

Comments
 (0)