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();