mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
cleaning up
This commit is contained in:
parent
a42a464d1f
commit
d27660492e
2 changed files with 5 additions and 5 deletions
|
@ -10,10 +10,10 @@ chrome.runtime.getBackgroundPage(function(result) {
|
|||
|
||||
// OS detection
|
||||
var OS = "Unknown";
|
||||
if (navigator.appVersion.indexOf("Win") != -1) OS = "Windows";
|
||||
if (navigator.appVersion.indexOf("Mac") != -1) OS = "MacOS";
|
||||
if (navigator.appVersion.indexOf("X11") != -1) OS = "UNIX";
|
||||
if (navigator.appVersion.indexOf("Linux") != -1) OS = "Linux";
|
||||
if (navigator.appVersion.indexOf("Win") != -1) OS = "Windows";
|
||||
else if (navigator.appVersion.indexOf("Mac") != -1) OS = "MacOS";
|
||||
else if (navigator.appVersion.indexOf("X11") != -1) OS = "UNIX";
|
||||
else if (navigator.appVersion.indexOf("Linux") != -1) OS = "Linux";
|
||||
|
||||
var timers = new Array();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue