Apply suggestions from code review

Co-Authored-By: Kiran Niranjan <kiranleo1992@gmail.com>
This commit is contained in:
mattias-symphony 2019-11-29 08:04:12 +01:00 committed by GitHub
parent 89af983755
commit 1262a31f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,7 +527,7 @@ export class WindowHandler {
ipcMain.once('screen-source-selected', (_event, source) => {
if (isWindowsOS) {
const str = JSON.stringify(source);
logger.info(`window-handler: screen-source-selected, source: ${str} id: ${id}!`);
logger.info(`window-handler: screen-source-selected`, source, id);
const type = source.id.split(':')[0];
if (type === 'window') {
const hwnd = source.id.split(':')[1];
@ -732,7 +732,7 @@ export class WindowHandler {
if (displayId === element.id.toString()) {
if (isWindowsOS) {
const str = JSON.stringify(element);
logger.info(`window-handler: MG element: ${str}`);
logger.info(`window-handler: MG element:`, element);
const winX: string = element.bounds.x.toString();
const winY: string = element.bounds.y.toString();
this.execCmd(this.screenShareIndicatorFrameUtil, [ winX, winY ]);