aboutsummaryrefslogtreecommitdiff
path: root/src/services/window_utils/window_utils.js
diff options
context:
space:
mode:
authorjared <jaredrmain@gmail.com>2019-04-02 10:53:33 -0400
committerjared <jaredrmain@gmail.com>2019-04-02 10:53:33 -0400
commit79efe0646cb6fc88952e33e13a8ce61205d3aad6 (patch)
tree1eeae048c814b7a8da6780776d7a9ce2dcdf09d5 /src/services/window_utils/window_utils.js
parent2ee8d213669c101baad726ece5dc37b5eea7da94 (diff)
merge develop
Diffstat (limited to 'src/services/window_utils/window_utils.js')
-rw-r--r--src/services/window_utils/window_utils.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/window_utils/window_utils.js b/src/services/window_utils/window_utils.js
new file mode 100644
index 00000000..faff6cb9
--- /dev/null
+++ b/src/services/window_utils/window_utils.js
@@ -0,0 +1,5 @@
+
+export const windowWidth = () =>
+ window.innerWidth ||
+ document.documentElement.clientWidth ||
+ document.body.clientWidth