mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-18 05:45:23 +03:00
Ignore the platform stuff, and handle it during build.
This commit is contained in:
parent
0cef17b842
commit
cf979f0012
3 changed files with 5 additions and 14 deletions
|
@ -19,7 +19,6 @@ var GUI_control = function () {
|
|||
this.active_tab;
|
||||
this.tab_switch_in_progress = false;
|
||||
this.operating_system;
|
||||
this.extra_platform = "";
|
||||
this.defaultAllowedTabsWhenDisconnected = [
|
||||
'landing',
|
||||
'firmware_flasher',
|
||||
|
@ -66,13 +65,7 @@ var GUI_control = function () {
|
|||
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";
|
||||
if(navigator.platform.indexOf('aarch64') != -1)
|
||||
{
|
||||
this.extra_platform = 'arm64';
|
||||
}
|
||||
}
|
||||
else if (navigator.appVersion.indexOf("Linux") != -1) this.operating_system = "Linux";
|
||||
else if (navigator.appVersion.indexOf("X11") != -1) this.operating_system = "UNIX";
|
||||
else this.operating_system = "Unknown";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue