X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fui.js;h=9c97cd600891127443be8b07c66d8b686113cd42;hp=7fb08b15f66ccdb0fed2fd1fc7836bb4a994b36b;hb=8e901dce32e1d203d8400a0be806dc0c36b67665;hpb=b91b74a7197c240afe06841cf1b9dc492f1d2351;ds=sidebyside 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");