From 3ee4035bcb12cde7b53ccf21e605a2f6d08bcd2a Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 31 Oct 2021 22:04:15 +0100 Subject: chore: move isSmallVw function to main file Since helpers contains only one small function, I don't think it is useful to keep it separated from the rest. --- src/js/utilities/helpers.js | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/js/utilities/helpers.js (limited to 'src/js/utilities') diff --git a/src/js/utilities/helpers.js b/src/js/utilities/helpers.js deleted file mode 100644 index 8cc88c9..0000000 --- a/src/js/utilities/helpers.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Check the size of the current viewport. - * @returns {Boolean} True if viewport lower than 1200px; false otherwise. - */ -function isSmallVw() { - return window.innerWidth < 1200; -} - -// eslint-disable-next-line import/prefer-default-export -export { isSmallVw }; -- cgit v1.2.3