Skip to content

Commit 7d9f2e7

Browse files
committed
fix: valid bundle check in AskForAppleEventsAccess
1 parent be708c9 commit 7d9f2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

permissions.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ bool HasOpenSystemPreferencesDialog() {
498498
std::string bundle_id = info[0].As<Napi::String>().Utf8Value();
499499
bool should_prompt = info[1].As<Napi::Boolean>().Value() ? true : false;
500500

501-
if (IsValidBundleID([NSString stringWithUTF8String:bundle_id.c_str()])) {
501+
if (!IsValidBundleID([NSString stringWithUTF8String:bundle_id.c_str()])) {
502502
std::string err_msg = "Bundle identifier: " + bundle_id + " is not valid";
503503
deferred.Reject(Napi::String::New(env, err_msg));
504504
return deferred.Promise();

0 commit comments

Comments
 (0)