We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f92351c commit f3898b4Copy full SHA for f3898b4
1 file changed
assets/js/onboard.js
@@ -14,7 +14,7 @@
14
*/
15
const progressPlannerSaveLicenseKey = ( licenseKey ) => {
16
console.log( 'License key: ' + licenseKey );
17
- progressPlannerAjaxRequest( {
+ return progressPlannerAjaxRequest( {
18
url: progressPlanner.ajaxUrl,
19
data: {
20
action: 'progress_planner_save_onboard_data',
@@ -47,7 +47,10 @@ const progressPlannerAjaxAPIRequest = ( data ) => {
47
'none';
48
49
// Make a local request to save the response data.
50
- progressPlannerSaveLicenseKey( response.license_key );
+ progressPlannerSaveLicenseKey( response.license_key ).then( () => {
51
+ // Refresh the page.
52
+ window.location.reload();
53
+ } );
54
} )
55
.catch( ( error ) => {
56
console.warn( error );
0 commit comments