Following is the code snippet which tells you about current system ( actually sencha touch ):
if(Ext.os.is.Tablet){
console.log('tablet');
}else if(Ext.os.is.Phone){
console.log('phone');
}else{
console.log('other');
}
if(Ext.os.is.Tablet){
console.log('tablet');
}else if(Ext.os.is.Phone){
console.log('phone');
}else{
console.log('other');
}
No comments:
Post a Comment