From 30131a47c4ddd0c358040b228432ff258c4b8af1 Mon Sep 17 00:00:00 2001 From: Potecaru Tudor Date: Mon, 31 Aug 2020 12:13:38 +0300 Subject: [PATCH] Revert "fix(screenshare): Fix screen capture permissions lib not being bundled" (#90) This reverts commit e907e06c0101cddba04c321f126fd6b2b07892fd. Update version to 2.0.10 Co-authored-by: Tudor-Ovidiu Avram --- package-lock.json | 2 +- package.json | 2 +- screensharing/main.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5e1a1148..88404c61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.9", + "version": "2.0.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8c9c4a30..2feb8128 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jitsi-meet-electron-utils", - "version": "2.0.9", + "version": "2.0.10", "description": "Utilities for jitsi-meet-electron project", "main": "index.js", "scripts": { diff --git a/screensharing/main.js b/screensharing/main.js index bd7e3ad6..4f427fc2 100644 --- a/screensharing/main.js +++ b/screensharing/main.js @@ -3,7 +3,6 @@ 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 @@ -121,7 +120,7 @@ class ScreenShareMainHook { hasPromptedForPermission, hasScreenCapturePermission, resetPermissions, - } = macScreenCapturePermissions; + } = require('mac-screen-capture-permissions'); const hasPermission = hasScreenCapturePermission(); const promptedAlready = hasPromptedForPermission();