From e907e06c0101cddba04c321f126fd6b2b07892fd Mon Sep 17 00:00:00 2001 From: Potecaru Tudor Date: Wed, 3 Jun 2020 16:07:00 +0300 Subject: [PATCH] fix(screenshare): Fix screen capture permissions lib not being bundled * Fix screen capture permissions lib not being bundled * Bump version to 2.0.8 Co-authored-by: Tudor-Ovidiu Avram --- package-lock.json | 2 +- package.json | 2 +- screensharing/main.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0e4cfa27..084b9ad2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.7", + "version": "2.0.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 168d1595..f19c27e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.7", + "version": "2.0.8", "description": "Utilities for jitsi-meet-electron project", "main": "index.js", "scripts": { diff --git a/screensharing/main.js b/screensharing/main.js index 4f427fc2..bd7e3ad6 100644 --- a/screensharing/main.js +++ b/screensharing/main.js @@ -3,6 +3,7 @@ const electron = require('electron'); const { SCREEN_SHARE_EVENTS_CHANNEL, SCREEN_SHARE_EVENTS, TRACKER_SIZE } = require('./constants'); const { isMac } = require('./utils'); +const macScreenCapturePermissions = require('mac-screen-capture-permissions'); /** * Main process component that sets up electron specific screen sharing functionality, like screen sharing @@ -120,7 +121,7 @@ class ScreenShareMainHook { hasPromptedForPermission, hasScreenCapturePermission, resetPermissions, - } = require('mac-screen-capture-permissions'); + } = macScreenCapturePermissions; const hasPermission = hasScreenCapturePermission(); const promptedAlready = hasPromptedForPermission();