Skip to content

Commit

Permalink
update: settings variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbhayel committed Nov 5, 2024
1 parent c9c7a4f commit dee182f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/settings/assets/js/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class API {

static async initConnect( context = 'new' ) {
const data = {
wp_rest: window?.siteMailerSettingsData?.wpRestNonce,
wp_rest: window?.ea11ySettingsData?.wpRestNonce,
};

if ( 'update' === context ) {
Expand All @@ -57,7 +57,7 @@ class API {
method: 'POST',
path: `${ v1Prefix }/connect/deactivate_and_disconnect`,
data: {
wp_rest: window?.siteMailerSettingsData?.wpRestNonce,
wp_rest: window?.ea11ySettingsData?.wpRestNonce,
clear_session: true,
},
} );
Expand All @@ -68,7 +68,7 @@ class API {
method: 'POST',
path: `${ v1Prefix }/connect/deactivate_and_disconnect`,
data: {
wp_rest: window?.siteMailerSettingsData?.wpRestNonce,
wp_rest: window?.ea11ySettingsData?.wpRestNonce,
},
} );
}
Expand All @@ -78,7 +78,7 @@ class API {
method: 'POST',
path: `${ v1Prefix }/connect/deactivate`,
data: {
wp_rest: window?.siteMailerSettingsData?.wpRestNonce,
wp_rest: window?.ea11ySettingsData?.wpRestNonce,
},
} );
}
Expand All @@ -88,7 +88,7 @@ class API {
method: 'POST',
path: `${ v1Prefix }/connect/disconnect`,
data: {
wp_rest: window?.siteMailerSettingsData?.wpRestNonce,
wp_rest: window?.ea11ySettingsData?.wpRestNonce,
},
} );
}
Expand All @@ -98,7 +98,7 @@ class API {
method: 'POST',
path: `${ v1Prefix }/connect/reconnect`,
data: {
wp_rest: window?.siteMailerSettingsData?.wpRestNonce,
wp_rest: window?.ea11ySettingsData?.wpRestNonce,
},
} );
}
Expand Down

0 comments on commit dee182f

Please sign in to comment.