| @@ -1,5 +1,5 @@ | ||
| 1 | -(function(){({init(){window.fluentcart_edit_user_global_bar_vars.edit_user_vars&&window.fluentcart_edit_user_global_bar_vars.edit_user_vars.fct_profile_url&&this.maybeUserProfile(window.fluentcart_edit_user_global_bar_vars.edit_user_vars)},maybeUserProfile(t){const e=window.jQuery("#profile-page > .wp-header-end");if(!e.length){console.warn('FluentCart: Target element "#profile-page > .wp-header-end" not found');return}try{window.jQuery(`<a | |
| 1 | +(function(){({init(){window.fluentcart_edit_user_global_bar_vars.edit_user_vars&&window.fluentcart_edit_user_global_bar_vars.edit_user_vars.fct_profile_url&&this.maybeUserProfile(window.fluentcart_edit_user_global_bar_vars.edit_user_vars)},maybeUserProfile(r){const e=window.jQuery("#profile-page > .wp-header-end");if(e.length)try{window.jQuery(`<a | |
| 2 | 2 | style="background: #00009f;color: white;border-color: #00009f;" |
| 3 | 3 | target="_blank" |
| 4 | 4 | class="page-title-action" |
| 5 | - href="${t.fct_profile_url}">View FluentCart Profile</a>`).insertBefore(e)}catch(r){console.error("FluentCart: Error inserting profile link:",r)}}}).init()})(); | |
| 5 | + href="${r.fct_profile_url}">View FluentCart Profile</a>`).insertBefore(e)}catch{}}}).init()})(); | |