diff options
Diffstat (limited to 'platform/darwin/src/MGLEventsManager.m')
-rw-r--r-- | platform/darwin/src/MGLEventsManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLEventsManager.m b/platform/darwin/src/MGLEventsManager.m index f46a3196a6..3790f55c26 100644 --- a/platform/darwin/src/MGLEventsManager.m +++ b/platform/darwin/src/MGLEventsManager.m @@ -1,5 +1,5 @@ #import "MGLEventsManager_Private.h" -#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR +#if TARGET_OS_IOS #import "MGLMapboxEvents.h" #endif @@ -16,7 +16,7 @@ } - (void)handleEvent:(NSString *)eventName withAttributes:(NSDictionary *)attributes { -#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR +#if TARGET_OS_IOS [MGLMapboxEvents pushEvent:eventName withAttributes:attributes]; #endif if (self.shouldHandleEvents && self.handler) { |