Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ document.addEventListener("DOMContentLoaded",function(){var t=ppcpSwitchSettingsUi;void 0!==t&&document.addEventListener("click",function(n){var e;(n.target.closest(".button.button-settings-switch-ui")||n.target.closest(".ppcp-notice-wrapper:not(.inline) a.settings-switch-ui")||n.target.closest('a[name="settings-switch-ui"]')||null!==(e=n.target.closest(".woocommerce-inbox-note__action-button"))&&void 0!==e&&e.textContent.includes("Switch to New Settings"))&&function(n){n.preventDefault(),confirm(t.confirmMessage)&&fetch(t.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:t.nonce})}).then(function(t){if(!t.ok)throw new Error("Network response was not ok");return t.json()}).then(function(n){window.location.href=t.settingsUrl}).catch(function(t){console.error("Error:",t)})}(n)})});