Skip to content

Commit

Permalink
Updated to work with cordova 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bperin committed Aug 23, 2012
1 parent a74af6d commit 8e1efd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Android/Share/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Share.prototype.show = function(content, success, fail) {
}, 'Share', '', [content]);
};

cordova.addConstructor(function(){
cordova.addPlugin('share', new Share());
});
if(!window.plugins) {
window.plugins = {};
}
if (!window.plugins.share) {
window.plugins.share = new Share();
}

0 comments on commit 8e1efd9

Please sign in to comment.