removed console message
This commit is contained in:
parent
3da74505d6
commit
4d4af5fdf2
@ -24,7 +24,6 @@
|
|||||||
let redirect = localStorage.getItem('redirectURL')
|
let redirect = localStorage.getItem('redirectURL')
|
||||||
let token = localStorage.getItem('token')
|
let token = localStorage.getItem('token')
|
||||||
let params = { 'html' : recipe,'url': window.location.href};
|
let params = { 'html' : recipe,'url': window.location.href};
|
||||||
console.log(window.location.href)
|
|
||||||
|
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', url, true);
|
xhr.open('POST', url, true);
|
||||||
@ -36,7 +35,6 @@
|
|||||||
// process response
|
// process response
|
||||||
if (xhr.readyState == 4 && xhr.status == 201) {
|
if (xhr.readyState == 4 && xhr.status == 201) {
|
||||||
// parse JSON data
|
// parse JSON data
|
||||||
console.log(JSON.parse(xhr.response));
|
|
||||||
window.open(redirect.concat('?id=', JSON.parse(xhr.response).id) )
|
window.open(redirect.concat('?id=', JSON.parse(xhr.response).id) )
|
||||||
} else {
|
} else {
|
||||||
console.error('Error!');
|
console.error('Error!');
|
||||||
|
Loading…
Reference in New Issue
Block a user