forked from getlantern/lantern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'valencia' into valencia-mobile
- Loading branch information
Showing
5 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var mailer = function() {} | ||
|
||
mailer.url = "https://mailer.getlantern.org"; | ||
|
||
mailer.send = function(data) { | ||
if (typeof data.to == 'undefined') { | ||
return false; | ||
} | ||
if (typeof data.template == 'undefined') { | ||
return false; | ||
}; | ||
$.ajax({ | ||
type: "POST", | ||
url: mailer.url + '/send', | ||
data: JSON.stringify(data), | ||
error: function(xhr, s, t) { | ||
console.log("error", t); | ||
} | ||
}); | ||
return true; | ||
}; |
Oops, something went wrong.