Skip to content

Commit

Permalink
fix(screenshare): Fix screen capture permissions lib not being bundled
Browse files Browse the repository at this point in the history
* Fix screen capture permissions lib not being bundled

* Bump version to 2.0.8

Co-authored-by: Tudor-Ovidiu Avram <[email protected]>
  • Loading branch information
quitrk and quitrk authored Jun 3, 2020
1 parent eec4411 commit e907e06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion screensharing/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -120,7 +121,7 @@ class ScreenShareMainHook {
hasPromptedForPermission,
hasScreenCapturePermission,
resetPermissions,
} = require('mac-screen-capture-permissions');
} = macScreenCapturePermissions;

const hasPermission = hasScreenCapturePermission();
const promptedAlready = hasPromptedForPermission();
Expand Down

0 comments on commit e907e06

Please sign in to comment.