35 lines
877 B
JavaScript
35 lines
877 B
JavaScript
import "antd/dist/antd.css";
|
|
import LogRocket from "logrocket";
|
|
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
import { Provider } from "react-redux";
|
|
import { MemoryRouter } from "react-router-dom";
|
|
import { PersistGate } from "redux-persist/integration/react";
|
|
import App from "./App/App";
|
|
import "./index.css";
|
|
import { persistor, store } from "./redux/store";
|
|
require("dotenv").config();
|
|
LogRocket.init("imex/rps");
|
|
|
|
ReactDOM.render(
|
|
<Provider store={store}>
|
|
<MemoryRouter>
|
|
<PersistGate persistor={persistor}>
|
|
<App />
|
|
</PersistGate>
|
|
</MemoryRouter>
|
|
</Provider>,
|
|
document.getElementById("root")
|
|
);
|
|
|
|
window.onkeydown = function (evt) {
|
|
// disable zooming
|
|
if (
|
|
(evt.code === "Minus" || evt.code === "Equal") &&
|
|
(evt.ctrlKey || evt.metaKey)
|
|
) {
|
|
console.log("Preventing zoom!");
|
|
evt.preventDefault();
|
|
}
|
|
};
|