aiber-martin/plugins/cordova-plugin-app-version/www/blackberry10/AppVersionProxy.js

19 lines
474 B
JavaScript
Raw Normal View History

2020-12-17 16:23:12 +00:00
module.exports = {
getVersionNumber: function( success, fail ) {
if( !blackberry || !blackberry.app || !blackberry.app.version ) {
if( fail ) {
return fail();
} else {
return "";
}
}
if( success ) {
return success( blackberry.app.version );
}
return blackberry.app.version;
}
};
require("cordova/exec/proxy").add("AppVersion", module.exports);