Update: 更新WebSocket模式
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
goog.loadJs('electron', () => {
|
||||
|
||||
goog.require('layui');
|
||||
goog.require('Mixly.Serial');
|
||||
goog.require('Mixly.Env');
|
||||
goog.require('Mixly.Msg');
|
||||
@@ -27,8 +26,6 @@ const {
|
||||
Electron
|
||||
} = Mixly;
|
||||
|
||||
const { form } = layui;
|
||||
|
||||
|
||||
class ElectronSerial extends Serial {
|
||||
static {
|
||||
@@ -106,7 +103,7 @@ class ElectronSerial extends Serial {
|
||||
});
|
||||
|
||||
this.#serialport_.on('error', (error) => {
|
||||
this.onError(error);
|
||||
this.onError(String(error));
|
||||
this.onClose(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user