1
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import isMobile from 'is-mobile';
|
||||
let cached;
|
||||
const getIsMobile = () => {
|
||||
if (typeof cached === 'undefined') {
|
||||
cached = isMobile();
|
||||
}
|
||||
return cached;
|
||||
};
|
||||
export default getIsMobile;
|
||||
Reference in New Issue
Block a user