From: Robert Kaiser Date: Tue, 23 Oct 2012 13:31:23 +0000 (+0200) Subject: make check for Firefox OS even nicer X-Git-Tag: legacy-preGL~52 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=8e901dce32e1d203d8400a0be806dc0c36b67665;p=lantea.git make check for Firefox OS even nicer --- diff --git a/js/ui.js b/js/ui.js index 7fb08b1..9c97cd6 100644 --- a/js/ui.js +++ b/js/ui.js @@ -31,7 +31,7 @@ window.onload = function() { areas[i].addEventListener("touchleave", uiEvHandler, false); } - if (/Mozilla\/5.0 \(Mobile;/.test(navigator.useragent)) { + if (navigator.platform.length == "") { // For Firefox OS, don't display the "save" button. // Do this by setting the debugHide class for testing in debug mode. document.getElementById("saveTrackButton").classList.add("debugHide");