1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
This commit is contained in:
cTn 2014-04-11 21:22:05 +02:00
parent 1268e0c206
commit 9165fc65de
3 changed files with 7 additions and 2 deletions

View file

@ -13,6 +13,7 @@ var GUI_control = function() {
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";
else this.operating_system = "Unknown";
};
// Timer managing methods
@ -295,6 +296,9 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
case 'firmware_flasher':
PortHandler.flush_callbacks();
// unbind "global" events
$(document).unbind('keypress');
if (callback) callback();
break;