Get warning on index.html to work.

This commit is contained in:
Kevin Dungs
2014-08-06 19:42:39 +02:00
committed by Tadej Novak
parent 65cf1d0fc8
commit c07fbd43e9
2 changed files with 9 additions and 9 deletions
+4 -5
View File
@@ -1,8 +1,7 @@
$(function () {
'use strict';
(function() {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
alert('lol');
$('#MobileWarning').modal('show');
} else {
Console.log(navigator.userAgent);
}
});
})();