notification script informing about broken api
parent
88ed454169
commit
abe4d13db3
24
main.js
24
main.js
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue