notification script informing about broken api

10.3.x-maintenance
cTn 2014-02-10 20:01:08 +01:00
parent 88ed454169
commit abe4d13db3
1 changed files with 23 additions and 1 deletions

24
main.js
View File

@ -31,7 +31,29 @@ $(document).ready(function() {
GUI.log('Running - OS: <strong>' + GUI.operating_system + '</strong>, ' +
'Chrome: <strong>' + window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/,"$1") + '</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
var tabs = $('#tabs > ul');
$('a', tabs).click(function() {