Skip to content

Commit

Permalink
move to entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Oct 3, 2024
1 parent 1ae2b62 commit d2c09f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/insomnia/src/ui/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import './rendererListeners';

import { registerKongSpecRenderer } from '@kong/spec-renderer-dev/web-component';
import React, { lazy, Suspense } from 'react';
import ReactDOM from 'react-dom/client';
import {
Expand Down Expand Up @@ -47,6 +48,8 @@ const Environments = lazy(() => import('./routes/environments'));

initializeSentry();
initializeLogging();
registerKongSpecRenderer();

// Handy little helper
document.body.setAttribute('data-platform', process.platform);
document.title = getProductName();
Expand Down
3 changes: 1 addition & 2 deletions packages/insomnia/src/ui/routes/design.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { registerKongSpecRenderer } from '@kong/spec-renderer-dev/web-component';
import { type IRuleResult } from '@stoplight/spectral-core';
import CodeMirror from 'codemirror';
import { stat } from 'fs/promises';
Expand Down Expand Up @@ -119,7 +118,7 @@ export const loader: LoaderFunction = async ({
parsedSpec,
};
};
registerKongSpecRenderer();

const SwaggerUIDiv = ({ text }: { text: string }) => {
const [spec, setSpec] = useState({});
useEffect(() => {
Expand Down

0 comments on commit d2c09f5

Please sign in to comment.