aboutsummaryrefslogtreecommitdiff
path: root/src/services/window_utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/window_utils')
-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