/home/techb158/l2hypotheques.com/wp-content/plugins/really-simple-ssl/modal/src
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/really-simple-ssl/modal/src/index.js (700B)
import {
render, createRoot
} from '@wordpress/element';
import DeactivationModal from "./components/DeactivationModal/DeactivationModal";
const initModal = () => {
const container = document.getElementById( 'rsssl-modal-root' );
if ( container ) {
if ( createRoot ) {
createRoot( container ).render(
);
} else {
render(
, container );
}
}
};
// Handle both cases - DOM already loaded OR still loading
if ( document.readyState === 'loading' ) {
// DOM hasn't loaded yet
document.addEventListener( 'DOMContentLoaded', initModal );
} else {
// DOM is already ready
initModal();
}