From abe4d13db3cf9e460608d5e1e00f515ed4e1e105 Mon Sep 17 00:00:00 2001 From: cTn Date: Mon, 10 Feb 2014 20:01:08 +0100 Subject: [PATCH] notification script informing about broken api --- main.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index b361fd36..b2b44d5d 100644 --- a/main.js +++ b/main.js @@ -31,7 +31,29 @@ $(document).ready(function() { GUI.log('Running - OS: ' + GUI.operating_system + ', ' + 'Chrome: ' + window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/,"$1") + ', ' + 'Configurator: ' + chrome.runtime.getManifest().version + ''); - + + // 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 Serial API which \ + breaks the communication completely on this platform'); + GUI.log('You can find more about this issue on this address \ + "new serial API fails to set higher baudrate then 38400"'); + } + break; + case 'ChromeOS': + break; + case 'Linux': + break; + case 'UNIX': + break; + } + // Tabs var tabs = $('#tabs > ul'); $('a', tabs).click(function() {