From 8e901dce32e1d203d8400a0be806dc0c36b67665 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Tue, 23 Oct 2012 15:31:23 +0200 Subject: [PATCH] make check for Firefox OS even nicer --- js/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.43.0