|
|
@ -64,8 +64,10 @@ export function setWriter(newWriter) {
|
|
|
|
// expose some globals for debuggin in webconsole
|
|
|
|
// expose some globals for debuggin in webconsole
|
|
|
|
if (typeof window !== 'undefined') {
|
|
|
|
if (typeof window !== 'undefined') {
|
|
|
|
window.wsc = {
|
|
|
|
window.wsc = {
|
|
|
|
isPortConnected,
|
|
|
|
get isPortConnected() { return isPortConnected; },
|
|
|
|
autoscroll,
|
|
|
|
get autoscroll() { return autoscroll; },
|
|
|
|
serialPorts,
|
|
|
|
get serialPorts() { return serialPorts; },
|
|
|
|
|
|
|
|
get reader() { return reader; },
|
|
|
|
|
|
|
|
get writer() { return writer; }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|