fix caching logic

smoother-timeline-navigation
Nolan Lawson 2018-03-23 08:16:46 -07:00
rodzic 3b03bd0e8d
commit d682982a54
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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