make check for Firefox OS even nicer
authorRobert Kaiser <kairo@kairo.at>
Tue, 23 Oct 2012 13:31:23 +0000 (15:31 +0200)
committerRobert Kaiser <kairo@kairo.at>
Tue, 23 Oct 2012 13:31:23 +0000 (15:31 +0200)
js/ui.js

index 7fb08b15f66ccdb0fed2fd1fc7836bb4a994b36b..9c97cd600891127443be8b07c66d8b686113cd42 100644 (file)
--- 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");