From d64eefd70ea190b837567d919eadff68962adfea Mon Sep 17 00:00:00 2001 From: NihadBadalov <32594553+NihadBadalov@users.noreply.github.com> Date: Thu, 15 Feb 2024 09:04:49 +0100 Subject: [PATCH] Revert: Undo isMobile method changes --- src/mixins/mobile.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mixins/mobile.js b/src/mixins/mobile.js index 1f84c1bfc..c44edcff3 100644 --- a/src/mixins/mobile.js +++ b/src/mixins/mobile.js @@ -36,14 +36,8 @@ export default { }, computed: { - /** - * @param {number? | undefined} width Width of the device - * @returns {boolean} Whether the device is mobile - */ - isMobile(width) { - return (width && typeof width === "number" - ? width ?? this.windowWidth - : this.windowWidth) <= 767.98; + isMobile() { + return this.windowWidth <= 767.98; }, },