Skip to content

Commit

Permalink
debugger med
Browse files Browse the repository at this point in the history
  • Loading branch information
d142796 committed Jan 16, 2025
1 parent 92f23d1 commit faae281
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<title>Tiltaksgjennomføring</title>
</head>
<body>
Hei på deg
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" aria-live="polite" class="tiltaksgjennomforing"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RouterProvider } from 'react-router-dom';
import router from './Router';

function App() {
return <RouterProvider router={router} />;
return <h1>Hei Verden fra react!</h1>;
}

export default App;
10 changes: 0 additions & 10 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
import '@navikt/ds-css';
import { init as Sentry, Integrations } from '@sentry/react';
import * as ReactDOMClient from 'react-dom/client';

import './index.less';
import App from './App';

declare const GIT_COMMIT_HASH: string;

Sentry({
dsn: 'https://[email protected]/4',
release: GIT_COMMIT_HASH || 'unknown',
environment: window.location.hostname,
integrations: [new Integrations.Breadcrumbs({ console: false })],
});

const container = document.getElementById('root');
const root = ReactDOMClient.createRoot(container!);
root.render(<App />);

0 comments on commit faae281

Please sign in to comment.