Fixes #35: Doesn't work with Cordova Lib 4.0.1+

shouldOverrideLoadWithRequest must return true for normal HTML
requests, although on earlier versions it must still return false!
This commit is contained in:
adnathan 2016-05-20 13:39:00 -07:00
Родитель d4fa2dd95e
Коммит ed842b52b9
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -47,7 +47,10 @@ BOOL _initialized;
// Close all popups since this has been requested.
[Popup CloseAll];
}
return false;
// 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;
}
- (void)initialize:(CDVInvokedUrlCommand*)command {