mirror of
https://github.com/shuto-cn/CrashLog.git
synced 2026-02-12 00:03:42 +08:00
尝试兼容早期版本 cordova android
This commit is contained in:
@@ -13,7 +13,8 @@ public class CrashLogPlugin extends CordovaPlugin {
|
||||
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
|
||||
super.initialize(cordova, webView);
|
||||
CrashHandler crashHandler = CrashHandler.getInstance();
|
||||
crashHandler.init(cordova.getContext());
|
||||
// crashHandler.init(cordova.getContext()); // 老版本里没有这个方法
|
||||
crashHandler.init(cordova.getActivity().getApplicationContext());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user