UNPKG

cordova-plugin-update-security-provider

Version:

An Android Cordova plugin that installs security updates for SSL through Google Play services.

18 lines (15 loc) 698 B
// Empty constructor function UpdateSecurityProviderPlugin() {} // The function that passes work along to native shells UpdateSecurityProviderPlugin.prototype.update = function(successCallback, errorCallback) { cordova.exec(successCallback, errorCallback, 'UpdateSecurityProviderPlugin', 'update', null); } // Installation constructor that binds UpdateSecurityProviderPlugin to window UpdateSecurityProviderPlugin.install = function() { if (!window.plugins) { window.plugins = {}; } window.plugins.updateSecurityProviderPlugin = new UpdateSecurityProviderPlugin(); return window.plugins.updateSecurityProviderPlugin; }; cordova.addConstructor(UpdateSecurityProviderPlugin.install);