Skip to content

Commit a8537bc

Browse files
committed
move debug def to env var
1 parent 6f754fb commit a8537bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/serial/base-serial.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ class BaseSerial extends EventEmitter {
3434
this.connected = false;
3535
this.implementation = 'basic';
3636
this.serial = null;
37-
this.DEBUG = true;
37+
this.DEBUG = !!process.env.VUE_APP_DEBUG;
38+
// eslint-disable-next-line no-console
39+
// console.log('debug', this.DEBUG);
3840
}
3941

4042
install(Vue) {

0 commit comments

Comments
 (0)