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