From 49f93e660e5080d10db62dfc0afa42dff9d8d892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Fri, 22 May 2015 10:05:41 +0200 Subject: [PATCH] User agent sniffing --- front/src/js/app.js | 1 + front/src/views/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/front/src/js/app.js b/front/src/js/app.js index 6a229fb..4fcfa1a 100644 --- a/front/src/js/app.js +++ b/front/src/js/app.js @@ -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 diff --git a/front/src/views/index.html b/front/src/views/index.html index 13b0504..f83be65 100644 --- a/front/src/views/index.html +++ b/front/src/views/index.html @@ -2,7 +2,7 @@

Free and open source!

- +