mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
improving GUI object
This commit is contained in:
parent
c106f45ebf
commit
557ed55144
1 changed files with 8 additions and 1 deletions
|
@ -1,8 +1,15 @@
|
|||
var GUI_control = function() {
|
||||
this.active_tab;
|
||||
|
||||
this.operating_system;
|
||||
this.interval_array = [];
|
||||
this.timeout_array = [];
|
||||
|
||||
// check which operating system is user running
|
||||
if (navigator.appVersion.indexOf("Win") != -1) this.operating_system = "Windows";
|
||||
else if (navigator.appVersion.indexOf("Mac") != -1) this.operating_system = "MacOS";
|
||||
else if (navigator.appVersion.indexOf("CrOS") != -1) this.operating_system = "ChromeOS";
|
||||
else if (navigator.appVersion.indexOf("Linux") != -1) this.operating_system = "Linux";
|
||||
else if (navigator.appVersion.indexOf("X11") != -1) this.operating_system = "UNIX";
|
||||
};
|
||||
|
||||
// Timer managing methods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue