From c64a7bd26fefb53aee53667cf33e2c72b7d07311 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 31 Oct 2021 22:03:04 +0100 Subject: build: use php dotenv instead of js to inject style.js in dev mode --- src/js/utilities/helpers.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/js/utilities') diff --git a/src/js/utilities/helpers.js b/src/js/utilities/helpers.js index 470c49c..8cc88c9 100644 --- a/src/js/utilities/helpers.js +++ b/src/js/utilities/helpers.js @@ -6,14 +6,5 @@ function isSmallVw() { return window.innerWidth < 1200; } -/** - * Check if /assets/styles.js exists (Webpack dev mode). - * @returns {Boolean} True if style.js exists ; false otherwise. - */ -async function isStyleJsExists() { - const filePath = 'assets/js/style.js'; - const response = await fetch(filePath); - return response.status === 200; -} - -export { isSmallVw, isStyleJsExists }; +// eslint-disable-next-line import/prefer-default-export +export { isSmallVw }; -- cgit v1.2.3