mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Changed JavaScript invoked from PluginResult native code to use new modular JS approach
This commit is contained in:
parent
8a137395ae
commit
45d75524c9
@ -84,11 +84,11 @@ public class PluginResult {
|
||||
}
|
||||
|
||||
public String toSuccessCallbackString(String callbackId) {
|
||||
return "Cordova.callbackSuccess('"+callbackId+"',"+this.getJSONString()+");";
|
||||
return "require('cordova').callbackSuccess('"+callbackId+"',"+this.getJSONString()+");";
|
||||
}
|
||||
|
||||
public String toErrorCallbackString(String callbackId) {
|
||||
return "Cordova.callbackError('"+callbackId+"', " + this.getJSONString()+ ");";
|
||||
return "require('cordova').callbackError('"+callbackId+"', " + this.getJSONString()+ ");";
|
||||
}
|
||||
|
||||
public static String[] StatusMessages = new String[] {
|
||||
|
Loading…
Reference in New Issue
Block a user