1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 13:25:24 +03:00

improving GUI object

This commit is contained in:
cTn 2013-11-15 17:13:36 +01:00
parent c106f45ebf
commit 557ed55144

View file

@ -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