From 34b45675b3de56c847818dbcc829f7ce02ddce56 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 28 Oct 2020 01:00:53 +0100 Subject: Eliminate use of jQuery from the frontend --- frontend/public/index.html | 12 +----------- frontend/src/components/app/map/MapStageComponent.js | 3 +-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/frontend/public/index.html b/frontend/public/index.html index ec8cd964..8b32aec6 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -55,20 +55,10 @@ gtag('config', 'UA-84285092-3') - +
- - - - diff --git a/frontend/src/components/app/map/MapStageComponent.js b/frontend/src/components/app/map/MapStageComponent.js index cecb34de..2cd0ed6e 100644 --- a/frontend/src/components/app/map/MapStageComponent.js +++ b/frontend/src/components/app/map/MapStageComponent.js @@ -4,7 +4,6 @@ import { Shortcuts } from 'react-shortcuts' import MapLayer from '../../../containers/app/map/layers/MapLayer' import ObjectHoverLayer from '../../../containers/app/map/layers/ObjectHoverLayer' import RoomHoverLayer from '../../../containers/app/map/layers/RoomHoverLayer' -import jQuery from '../../../util/jquery' import { NAVBAR_HEIGHT } from '../../navigation/Navbar' import { MAP_MOVE_PIXELS_PER_EVENT } from './MapConstants' import { Provider } from 'react-redux' @@ -43,7 +42,7 @@ class MapStageComponent extends React.Component { } updateDimensions() { - this.props.setMapDimensions(jQuery(window).width(), jQuery(window).height() - NAVBAR_HEIGHT) + this.props.setMapDimensions(window.innerWidth, window.innerHeight - NAVBAR_HEIGHT) } updateScale(e) { -- cgit v1.2.3