Skip to content

Commit

Permalink
Merge pull request #22 from MarshallOfSound/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Jul 31, 2020
2 parents 2281839 + 9a838ad commit 4241203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
- template: build-template.yml
parameters:
name: macOS
vmImage: 'macOS-10.13'
vmImage: macOS-latest

- template: build-template.yml
parameters:
Expand Down
2 changes: 2 additions & 0 deletions src/keyboard_mac.mm
Expand Up @@ -181,6 +181,8 @@ napi_value _GetCurrentKeyboardLayout(napi_env env, napi_callback_info info) {
} NotificationCallbackData;

void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) {
napi_handle_scope scope;

NotificationCallbackData *data = (NotificationCallbackData *)observer;
napi_env env = data->env;
napi_async_context context = data->context;
Expand Down

0 comments on commit 4241203

Please sign in to comment.