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 7fb08b1..9c97cd6 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");