From d1eb063e564687e64ff9f3def5a50051d93b3889 Mon Sep 17 00:00:00 2001 From: Kristian Polso Date: Thu, 17 May 2018 18:20:11 +0300 Subject: [PATCH] Email Subscribe JSON --- .vuepress/components/EmailSubscribe.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.vuepress/components/EmailSubscribe.vue b/.vuepress/components/EmailSubscribe.vue index 0e9372a..9f9d23b 100644 --- a/.vuepress/components/EmailSubscribe.vue +++ b/.vuepress/components/EmailSubscribe.vue @@ -23,7 +23,12 @@ export default { if(!this.validateEmail(this.emailAddress)) { this.message = 'Your email is not valid!'; } else { - this.$http.post('//api.lbry.io/list/subscribe', {email: this.emailAddress, tag: 'developer'}).then(function(response) { + this.$http.post('//api.lbry.io/list/subscribe', { + email: this.emailAddress, + tag: 'developer' + }, { + emulateJSON: true + }).then(function(response) { component.email = ''; component.message = 'Thank you for subscribing!'; });