From 99624405ee3ca3d88c1a5ac0f53532199d4ccbfc Mon Sep 17 00:00:00 2001 From: Kevin Dungs Date: Sun, 9 Nov 2014 16:12:59 +0100 Subject: [PATCH] Fix use strict. Also add matcher for Firefox OS(?). --- js/warnmobile.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/warnmobile.js b/js/warnmobile.js index e24dea0..3476f27 100644 --- a/js/warnmobile.js +++ b/js/warnmobile.js @@ -1,7 +1,6 @@ -'use strict'; - (function() { - if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { + 'use strict'; + if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile/i.test(navigator.userAgent)) { $('#MobileWarning').modal('show'); } })();