From d4b50523c2f82ce98b65d763a478956938bc8bc9 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Wed, 27 Nov 2019 12:55:44 -0500 Subject: [PATCH] DEV-2832: Automatically minimize Screen Share app when sharing window is confirmed --- screenshare/src/screenshareApp.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/screenshare/src/screenshareApp.js b/screenshare/src/screenshareApp.js index 2abc151988..4de36639dc 100644 --- a/screenshare/src/screenshareApp.js +++ b/screenshare/src/screenshareApp.js @@ -7,6 +7,8 @@ // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +const { remote } = require('electron'); + // Helpers function handleError(error) { if (error) { @@ -221,6 +223,7 @@ function onAccessApproved(desktop_id) { } } }, gotStream, handleError); + remote.getCurrentWindow().minimize(); }