Changeset 2565749
- Timestamp:
- 07/16/2021 09:08:20 AM (5 years ago)
- File:
-
- 1 edited
-
zervise/trunk/includes/js/main.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zervise/trunk/includes/js/main.js
r2526026 r2565749 29 29 console.log(state); 30 30 } else { 31 const url = `https:// zervise.com:7000/auth/user/wordpress/${subdomain}`;31 const url = `https://api.zervise.com/auth/user/wordpress/${subdomain}`; 32 32 const data = { 33 33 wordpressId: zerviseBtn.getAttribute('data-user-id'), … … 124 124 .catch((error) => { 125 125 console.log(error.status); 126 if (error.status == 401) {126 if (error.status == 401) { 127 127 localStorage.removeItem('auth-token'); 128 128 localStorage.removeItem('person'); … … 132 132 error.json().then((body) => { 133 133 state.errors = body.errors; 134 134 135 135 document.querySelector('.submit-btn').innerHTML = 136 136 '<i class="far fa-check-circle"></i> Submit Ticket Now'; … … 139 139 showError(err.msg); 140 140 }); 141 141 142 142 console.log(state); 143 143 }); … … 223 223 } 224 224 225 const url = 'https:// zervise.com:7000/ticket/create';225 const url = 'https://api.zervise.com/ticket/create'; 226 226 const headers = { 227 227 'auth-token': state.token,
Note: See TracChangeset
for help on using the changeset viewer.