From e5325ede08330ba3cbda85116a7cc58b7c043006 Mon Sep 17 00:00:00 2001 From: malmen237 Date: Wed, 10 Apr 2024 12:20:57 +0200 Subject: [PATCH] fix: added comment about avaliability and tablet-variable --- src/bowser.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bowser.ts b/src/bowser.ts index 60347dba..b66f03f9 100644 --- a/src/bowser.ts +++ b/src/bowser.ts @@ -2,6 +2,9 @@ import Bowser from "bowser"; const deviceInfo = Bowser.parse(window.navigator.userAgent); +// platform type, can be either "desktop", "tablet" or "mobile" export const isMobile = deviceInfo.platform.type === "mobile"; +export const isTablet = deviceInfo.platform.type === "tablet"; + export const isDesktop = deviceInfo.platform.type === "desktop";