summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-28 01:00:53 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-28 11:38:34 +0100
commit34b45675b3de56c847818dbcc829f7ce02ddce56 (patch)
tree55024dadab8571bef0446f2ca71ef8295692bddf /frontend/src
parent65d909bf76b8c29f20e733494fd4a0b1b2cd5afa (diff)
Eliminate use of jQuery from the frontend
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/components/app/map/MapStageComponent.js3
1 files changed, 1 insertions, 2 deletions
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) {