mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
notification script informing about broken api
This commit is contained in:
parent
88ed454169
commit
abe4d13db3
1 changed files with 23 additions and 1 deletions
24
main.js
24
main.js
|
@ -31,7 +31,29 @@ $(document).ready(function() {
|
||||||
GUI.log('Running - OS: <strong>' + GUI.operating_system + '</strong>, ' +
|
GUI.log('Running - OS: <strong>' + GUI.operating_system + '</strong>, ' +
|
||||||
'Chrome: <strong>' + window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/,"$1") + '</strong>, ' +
|
'Chrome: <strong>' + window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/,"$1") + '</strong>, ' +
|
||||||
'Configurator: <strong>' + chrome.runtime.getManifest().version + '</strong>');
|
'Configurator: <strong>' + chrome.runtime.getManifest().version + '</strong>');
|
||||||
|
|
||||||
|
// notification messages for various operating systems
|
||||||
|
switch (GUI.operating_system) {
|
||||||
|
case 'Windows':
|
||||||
|
break;
|
||||||
|
case 'MacOS':
|
||||||
|
var main_chromium_version = window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/,"$1").split('.')[0];
|
||||||
|
|
||||||
|
if (main_chromium_version >= 33) {
|
||||||
|
GUI.log('Configurator detected that you are running Chrome / Chromium with broken <strong>Serial API</strong> which \
|
||||||
|
<strong style="color: red">breaks</strong> the communication completely on this platform');
|
||||||
|
GUI.log('You can find more about this issue on this address \
|
||||||
|
<strong>"<a href="https://code.google.com/p/chromium/issues/detail?id=337482" title="Chromium Bug Tracker" target="_blank">new serial API fails to set higher baudrate then 38400</a>"</strong>');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'ChromeOS':
|
||||||
|
break;
|
||||||
|
case 'Linux':
|
||||||
|
break;
|
||||||
|
case 'UNIX':
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Tabs
|
// Tabs
|
||||||
var tabs = $('#tabs > ul');
|
var tabs = $('#tabs > ul');
|
||||||
$('a', tabs).click(function() {
|
$('a', tabs).click(function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue