summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
diff options
context:
space:
mode:
authorAndrei Stanciu <andrei.stanciu@geminisols.ro>2017-02-10 16:56:48 +0200
committerCorey Hulen <corey@hulen.com>2017-02-10 06:56:48 -0800
commit1bbed1cb2bf1248e9ca8a1511cfe8a385c5f21f7 (patch)
treee61c54cc13a6d7975cce69322bae6f6f5c7c9300 /webapp/utils/utils.jsx
parent1359f7f3918befd2463103379d17bd2eb846654d (diff)
downloadchat-1bbed1cb2bf1248e9ca8a1511cfe8a385c5f21f7.tar.gz
chat-1bbed1cb2bf1248e9ca8a1511cfe8a385c5f21f7.tar.bz2
chat-1bbed1cb2bf1248e9ca8a1511cfe8a385c5f21f7.zip
Add permalink to timestamp (#5206)
* Add permalink to timestamp * Add permalink to timestamp * Add permalink to timestamp * Add permalink to timestamp * fix error with duplicated import * underline permalink on hover
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});
+}