Skip to content

Commit

Permalink
feat: Remove unsupported browser detection as it is not necessary for…
Browse files Browse the repository at this point in the history
… feat: Remove unsupported browser detection (#401)

* feat: Remove unsupported browser detection as it is not necessary for evergreen browsers

* update pnpm lock
  • Loading branch information
pziemkowski authored Sep 25, 2023
1 parent 9d2fa78 commit 85a8b6d
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 403 deletions.
4 changes: 0 additions & 4 deletions packages/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"intl": "^1.2.5",
"lucide-react": "^0.279.0",
"qrcode": "^1.5.3",
"semver-compare": "^1.0.0",
"ua-parser-js": "^1.0.36",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down Expand Up @@ -54,8 +52,6 @@
"@storybook/client-logger": "^7.4.3",
"@storybook/react-vite": "^7.4.3",
"@types/qrcode": "^1.5.2",
"@types/semver-compare": "^1.0.1",
"@types/ua-parser-js": "^0.7.37",
"@vitejs/plugin-legacy": "^4.1.1",
"autoprefixer": "^10.4.16",
"concurrently": "^7.6.0",
Expand Down
9 changes: 0 additions & 9 deletions packages/webapp/src/app/initApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { HelmetProvider } from 'react-helmet-async';
import 'regenerator-runtime/runtime';

import { ApiProvider, RouterProvider, SentryProvider } from './providers';
import { setUnsupportedClasses } from './unsupported/support';
import { UnsupportedBrowserDetection } from './unsupported/unsupportedBrowserDetection';

const render = () => {
const App = lazy(() => import('./app.component'));
Expand Down Expand Up @@ -40,13 +38,6 @@ const render = () => {
};

export const initApp = async () => {
const detection = new UnsupportedBrowserDetection();

if (!detection.isSupported()) {
setUnsupportedClasses(detection.isInAppBrowser, detection.deviceType, detection.isSupported);
return;
}

// Chunked polyfill for browsers without Intl support
if (!window.Intl) {
Promise.resolve(require('intl'))
Expand Down
70 changes: 0 additions & 70 deletions packages/webapp/src/app/unsupported/__tests__/support.spec.ts

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions packages/webapp/src/app/unsupported/support.ts

This file was deleted.

Loading

0 comments on commit 85a8b6d

Please sign in to comment.