User agent sniffing

This commit is contained in:
Gaël Métais
2015-05-22 10:05:41 +02:00
parent 867680f4e9
commit 49f93e660e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@ var yltApp = angular.module('YellowLabTools', [
]);
yltApp.run(['$rootScope', '$location', function($rootScope, $location) {
$rootScope.isTouchDevice = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);
$rootScope.loadedRunId = null;
// Google Analytics