30 lines
853 B
JavaScript
30 lines
853 B
JavaScript
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
import * as Sentry from "@sentry/react";
|
|
import App from "./App";
|
|
import Modal from "react-modal";
|
|
|
|
// Add css for simplebar
|
|
import "simplebar/dist/simplebar.min.css";
|
|
|
|
import * as serviceWorker from "./serviceWorker";
|
|
|
|
import "./index.css";
|
|
|
|
if (process.env.NODE_ENV === "production") {
|
|
Sentry.init({
|
|
dsn:
|
|
"https://bc1e2edfe7ca453f8e7357a48693979e@o467475.ingest.sentry.io/5493956",
|
|
release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION,
|
|
});
|
|
}
|
|
|
|
Modal.setAppElement("#root");
|
|
|
|
ReactDOM.render(<App />, document.getElementById("root"));
|
|
|
|
// If you want your app to work offline and load faster, you can change
|
|
// unregister() to register() below. Note this comes with some pitfalls.
|
|
// Learn more about service workers: https://bit.ly/CRA-PWA
|
|
serviceWorker.unregister();
|