summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r--webapp/utils/utils.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index c639abc56..2fd7bf99b 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -1287,3 +1287,7 @@ export function isEmptyObject(object) {
return false;
}
+
+export function updateWindowDimensions(component) {
+ component.setState({width: window.innerWidth, height: window.innerHeight});
+}