mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-09 08:10:53 +00:00
19 lines
625 B
JavaScript
Executable file
19 lines
625 B
JavaScript
Executable file
// Copyright (C) 2017-2022 Smart code 203358507
|
|
|
|
if (typeof process.env.SENTRY_DSN === 'string') {
|
|
const Sentry = require('@sentry/browser');
|
|
Sentry.init({ dsn: process.env.SENTRY_DSN });
|
|
}
|
|
|
|
const Bowser = require('bowser');
|
|
const browser = Bowser.parse(window.navigator?.userAgent || '');
|
|
if (browser?.platform?.type === 'desktop') {
|
|
document.querySelector('meta[name="viewport"]')?.setAttribute('content', '');
|
|
}
|
|
|
|
const React = require('react');
|
|
const ReactDOM = require('react-dom/client');
|
|
const App = require('./App');
|
|
|
|
const root = ReactDOM.createRoot(document.getElementById('app'));
|
|
root.render(<App />);
|