From 2879495b8ab16a07d337965871e951f660fc1815 Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 1 Apr 2019 22:41:34 +0300 Subject: remove window width copypasta --- src/services/window_utils/window_utils.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/services/window_utils/window_utils.js (limited to 'src/services/window_utils/window_utils.js') 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 -- cgit v1.2.3-70-g09d2