document.addEventListener('DOMContentLoaded', function() {
const pluginSplitClose = document.getElementById('plugin-split-close');
pluginSplitClose.addEventListener('click', function () {
let nonceElement = document.getElementById('hts_close_plugin_split_nonce');
console.error('Nonce element not found.');
let nonce = nonceElement.value;
'Content-Type': 'application/x-www-form-urlencoded',
body: new URLSearchParams({
'action': 'hostinger_dismiss_plugin_split_notice',
throw new Error('Network response was not ok ' + response.statusText);
document.getElementById('hostinger-plugin-split-notice').style.display = 'none';
console.error('Error:', error);