|
210 | 210 | Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
|
211 | 211 | Napi::ThreadSafeFunction ts_fn =
|
212 | 212 | Napi::ThreadSafeFunction::New(env, Napi::Function::New(env, NoOp),
|
213 |
| - "contactsCallback", 0, 1, [](Napi::Env) {}); |
| 213 | + "contactsCallback", 0, 1); |
214 | 214 |
|
215 | 215 | if (@available(macOS 10.11, *)) {
|
216 | 216 | CNContactStore *store = [CNContactStore new];
|
|
236 | 236 | Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
|
237 | 237 | Napi::ThreadSafeFunction ts_fn =
|
238 | 238 | Napi::ThreadSafeFunction::New(env, Napi::Function::New(env, NoOp),
|
239 |
| - "calendarCallback", 0, 1, [](Napi::Env) {}); |
| 239 | + "calendarCallback", 0, 1); |
240 | 240 |
|
241 | 241 | [[EKEventStore new]
|
242 | 242 | requestAccessToEntityType:EKEntityTypeEvent
|
|
257 | 257 | Napi::Env env = info.Env();
|
258 | 258 | Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
|
259 | 259 | Napi::ThreadSafeFunction ts_fn = Napi::ThreadSafeFunction::New(
|
260 |
| - env, Napi::Function::New(env, NoOp), "remindersCallback", 0, 1, |
261 |
| - [](Napi::Env) {}); |
| 260 | + env, Napi::Function::New(env, NoOp), "remindersCallback", 0, 1); |
262 | 261 |
|
263 | 262 | [[EKEventStore new]
|
264 | 263 | requestAccessToEntityType:EKEntityTypeReminder
|
@@ -288,8 +287,7 @@ void AskForFullDiskAccess(const Napi::CallbackInfo &info) {
|
288 | 287 | Napi::Env env = info.Env();
|
289 | 288 | Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
|
290 | 289 | Napi::ThreadSafeFunction ts_fn = Napi::ThreadSafeFunction::New(
|
291 |
| - env, Napi::Function::New(env, NoOp), "cameraAccessCallback", 0, 1, |
292 |
| - [](Napi::Env) {}); |
| 290 | + env, Napi::Function::New(env, NoOp), "cameraAccessCallback", 0, 1); |
293 | 291 |
|
294 | 292 | if (@available(macOS 10.14, *)) {
|
295 | 293 | std::string auth_status = MediaAuthStatus("camera");
|
@@ -329,8 +327,7 @@ void AskForFullDiskAccess(const Napi::CallbackInfo &info) {
|
329 | 327 | Napi::Env env = info.Env();
|
330 | 328 | Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
|
331 | 329 | Napi::ThreadSafeFunction ts_fn = Napi::ThreadSafeFunction::New(
|
332 |
| - env, Napi::Function::New(env, NoOp), "microphoneAccessCallback", 0, 1, |
333 |
| - [](Napi::Env) {}); |
| 330 | + env, Napi::Function::New(env, NoOp), "microphoneAccessCallback", 0, 1); |
334 | 331 |
|
335 | 332 | if (@available(macOS 10.14, *)) {
|
336 | 333 | std::string auth_status = MediaAuthStatus("microphone");
|
|
0 commit comments