File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 22
33SDK for integrating Jitsi Meet into Electron applications.
44
5- Supported Electron versions: >= 11 .
5+ Supported Electron versions: >= 16 .
66
77## Installation
88
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const electron = require('electron');
22const os = require ( 'os' ) ;
33const { BrowserWindow, ipcMain } = electron ;
44
5+ const { windowsEnableScreenProtection } = require ( '../../helpers/functions' ) ;
56const { EVENTS , STATES , AOT_WINDOW_NAME } = require ( '../constants' ) ;
67const {
78 getPosition,
@@ -58,9 +59,7 @@ const openAotWindow = (event, options) => {
5859 // Required to allow the window to be rendered on top of full screen apps
5960 aotWindow . setAlwaysOnTop ( true , 'screen-saver' ) ;
6061
61- // Once this bug is fixed on Electron side we'll re-enable this for Windows 10 Version 2004 or newer:
62- // https://github.com/electron/electron/issues/29085
63- if ( os . platform ( ) !== 'win32' ) {
62+ if ( os . platform ( ) !== 'win32' || windowsEnableScreenProtection ( os . release ( ) ) ) {
6463 // Avoid this window from being captured.
6564 aotWindow . setContentProtection ( true ) ;
6665 }
You can’t perform that action at this time.
0 commit comments