Skip to content

Commit

Permalink
WebIntent Android Plugin Fixing #1077
Browse files Browse the repository at this point in the history
WebIntent predefined intents are not available because it should use the property object to be available to all instances of the object
  • Loading branch information
jleyva committed Mar 22, 2013
1 parent 2f4ced8 commit c846e05
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Android/WebIntent/webintent.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

};

WebIntent.ACTION_SEND = "android.intent.action.SEND";
WebIntent.ACTION_VIEW= "android.intent.action.VIEW";
WebIntent.EXTRA_TEXT = "android.intent.extra.TEXT";
WebIntent.EXTRA_SUBJECT = "android.intent.extra.SUBJECT";
WebIntent.EXTRA_STREAM = "android.intent.extra.STREAM";
WebIntent.EXTRA_EMAIL = "android.intent.extra.EMAIL";
WebIntent.prototype.ACTION_SEND = "android.intent.action.SEND";
WebIntent.prototype.ACTION_VIEW= "android.intent.action.VIEW";
WebIntent.prototype.EXTRA_TEXT = "android.intent.extra.TEXT";
WebIntent.prototype.EXTRA_SUBJECT = "android.intent.extra.SUBJECT";
WebIntent.prototype.EXTRA_STREAM = "android.intent.extra.STREAM";
WebIntent.prototype.EXTRA_EMAIL = "android.intent.extra.EMAIL";

WebIntent.prototype.startActivity = function(params, success, fail) {
return cordova.exec(function(args) {
Expand Down Expand Up @@ -70,4 +70,4 @@
window.plugins = window.plugins || {};
window.plugins.webintent = window.webintent;
});
})(window.PhoneGap || window.Cordova || window.cordova);
})(window.PhoneGap || window.Cordova || window.cordova);

0 comments on commit c846e05

Please sign in to comment.