Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
the-darc committed Nov 19, 2015
2 parents f95ef16 + 1abcf24 commit ff69a73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion bower.json
Expand Up @@ -4,7 +4,10 @@
"homepage": "https://github.com/the-darc/angular-virtual-keyboard",
"author": "the-darc <darc.tec@gmail.com>",
"description": "An AngularJs Virtual Keyboard Interface based on GreyWyvern VKI",
"main": "release/angular-virtual-keyboard.min.js",
"main": [
"release/angular-virtual-keyboard.min.js",
"release/angular-virtual-keyboard.css"
],
"keywords": [
"Keyboard",
"Virtual",
Expand Down
6 changes: 4 additions & 2 deletions src/angular-virtual-keyboard.js
Expand Up @@ -97,8 +97,10 @@ angular.module('angular-virtual-keyboard', [])
var UAParser = $injector.get('UAParser');
var results = new UAParser().getResult();
var isMobile = results.device.type === 'mobile' || results.device.type === 'tablet';
isMobile = isMobile || (results.os && (results.os.name === 'Android'));
isMobile = isMobile || (results.os && (results.os.name === 'iOS'));
isMobile = isMobile || (results.os && (results.os.name === 'Android'));
isMobile = isMobile || (results.os && (results.os.name === 'iOS'));
isMobile = isMobile || (results.os && (results.os.name === 'Windows Phone'));
isMobile = isMobile || (results.os && (results.os.name === 'Windows Mobile'));
if (isMobile && scope.config.showInMobile !== true) {
return;
}
Expand Down

0 comments on commit ff69a73

Please sign in to comment.