Plugin Directory

Changeset 2565749


Ignore:
Timestamp:
07/16/2021 09:08:20 AM (5 years ago)
Author:
zervise
Message:

Now supported with wordpress 5.8, colors updated to match zervise.com theme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zervise/trunk/includes/js/main.js

    r2526026 r2565749  
    2929    console.log(state);
    3030  } else {
    31     const url = `https://zervise.com:7000/auth/user/wordpress/${subdomain}`;
     31    const url = `https://api.zervise.com/auth/user/wordpress/${subdomain}`;
    3232    const data = {
    3333      wordpressId: zerviseBtn.getAttribute('data-user-id'),
     
    124124    .catch((error) => {
    125125      console.log(error.status);
    126       if(error.status == 401) {
     126      if (error.status == 401) {
    127127        localStorage.removeItem('auth-token');
    128128        localStorage.removeItem('person');
     
    132132        error.json().then((body) => {
    133133          state.errors = body.errors;
    134  
     134
    135135          document.querySelector('.submit-btn').innerHTML =
    136136            '<i class="far fa-check-circle"></i> &nbsp;Submit Ticket Now';
     
    139139            showError(err.msg);
    140140          });
    141  
     141
    142142          console.log(state);
    143143        });
     
    223223    }
    224224
    225     const url = 'https://zervise.com:7000/ticket/create';
     225    const url = 'https://api.zervise.com/ticket/create';
    226226    const headers = {
    227227      'auth-token': state.token,
Note: See TracChangeset for help on using the changeset viewer.