From ab08e3d995a36d7a7816c79cf8cca05bb0e0342b Mon Sep 17 00:00:00 2001 From: Andrey Belym Date: Mon, 8 Apr 2019 13:21:30 +0300 Subject: [PATCH] Fix bring-to-front for Windows; Bump version (v1.6.7) --- package.json | 2 +- src/api/bring-to-front.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fede977..e83af82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "testcafe-browser-tools", - "version": "1.6.6", + "version": "1.6.7", "description": "An utility library for performing platform-dependent actions on browsers.", "homepage": "https://github.com/DevExpress/testcafe-browser-tools", "bugs": "https://github.com/DevExpress/testcafe-browser-tools/issues", diff --git a/src/api/bring-to-front.js b/src/api/bring-to-front.js index cd092a9..919df87 100644 --- a/src/api/bring-to-front.js +++ b/src/api/bring-to-front.js @@ -20,7 +20,7 @@ export default async function (windowDescriptor) { if (OS.win) bringWindowToFrontArguments = [windowDescription.hwnd]; - if (OS.linux) + else if (OS.linux) bringWindowToFrontArguments = [windowDescription.windowId]; else if (OS.mac) bringWindowToFrontArguments = [windowDescription.processId, windowDescription.windowId];