13 lines
631 B
Diff
13 lines
631 B
Diff
diff --git a/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m b/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m
|
|
index d9d6a00..78fa83f 100644
|
|
--- a/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m
|
|
+++ b/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m
|
|
@@ -2,6 +2,8 @@
|
|
#import <Foundation/Foundation.h>
|
|
#include <node_api.h>
|
|
|
|
+CG_EXTERN bool CGPreflightScreenCaptureAccess(void) CG_AVAILABLE_STARTING(10.15);
|
|
+
|
|
static napi_value hasPermissions(napi_env env, napi_callback_info info) {
|
|
napi_status status;
|
|
bool hasPermissions;
|