refactor: Add UhkHidDevice wrapper that unified the USB communication (#414)
* refactor: Add UhkHidDevice wrapper that unified the USB communication * fix(log): Hack Replace console.debug to console.log
This commit is contained in:
committed by
László Monda
parent
8d7269a998
commit
901a5eb5d1
@@ -4,6 +4,12 @@ import * as util from 'util';
|
||||
|
||||
import { LogService } from 'uhk-common';
|
||||
|
||||
// https://github.com/megahertz/electron-log/issues/44
|
||||
// console.debug starting with Chromium 58 this method is a no-op on Chromium browsers.
|
||||
if (console.debug) {
|
||||
console.debug = console.log;
|
||||
}
|
||||
|
||||
/**
|
||||
* This service use the electron-log package to write log in file.
|
||||
* The logger usable in main and renderer process.
|
||||
|
||||
Reference in New Issue
Block a user