diff --git a/routes/_utils/isMobile.js b/routes/_utils/isMobile.js index ecab10e..b272a33 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