Fix for iOS Cordova version check

Older environments don’t have __CORDOVA_4_0_0 defined, resulting in a
build error.
This commit is contained in:
adnathan 2016-05-27 10:10:50 -07:00
Родитель c80567c3fe
Коммит 3a2c77cb86
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -50,7 +50,9 @@ BOOL _initialized;
// Before Cordova 4.0, we must return false in order for HTML navigation to work.
// Starting with Cordova 4.0, we must return true.
return CORDOVA_VERSION_MIN_REQUIRED >= __CORDOVA_4_0_0;
// The __CORDOVA_4_0_0 constant isn't used so this still compiles with older versions
// that don't have it defined.
return CORDOVA_VERSION_MIN_REQUIRED >= 40000 /*__CORDOVA_4_0_0*/;
}
- (void)initialize:(CDVInvokedUrlCommand*)command {