diff --git a/routes/_utils/isMobile.js b/routes/_utils/isMobile.js index ecab10ec..b272a337 100644 --- a/routes/_utils/isMobile.js +++ b/routes/_utils/isMobile.js @@ -4,7 +4,7 @@ let cached export function isMobile () { - if (!cached) { + if (typeof cached === 'undefined') { cached = !!(process.browser && navigator.userAgent.match(/(iPhone|iPod|iPad|Android)/)) } return cached