| Server IP : 66.29.153.156 / Your IP : 216.73.216.151 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/lastyfjz/www/wp-content/plugins/extendify/src/Assist/ |
Upload File : |
import { render as renderDeprecated, createRoot } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { AssistLandingPage } from '@assist/AssistLandingPage';
import '@assist/app.css';
const render = (component, node) => {
if (typeof createRoot !== 'function') {
renderDeprecated(component, node);
return;
}
createRoot(node).render(component);
};
const init = () => {
const assistPage = document.getElementById('extendify-assist-landing-page');
if (!assistPage) return;
// append skip link to get here
document
.querySelector('.screen-reader-shortcut')
.insertAdjacentHTML(
'afterend',
`<a href="#extendify-assist-landing-page" class="screen-reader-shortcut">${__(
'Skip to Assist',
'extendify-local',
)}</a>`,
);
render(<AssistLandingPage />, assistPage);
};
init();