%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/t/r/a/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/
Upload File :
Create Path :
Current File : /home/t/r/a/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/index.js

import {
    render,createRoot
} from '@wordpress/element';
import Page from './Page';

/**
 * Initialize
 */
function cmplzRenderSettings(container){
	if (createRoot) {
		createRoot(container).render(<Page/>);
	} else {
		render(<Page/>, container);
	}
}

document.addEventListener( 'DOMContentLoaded', () => {
	const container = document.getElementById( 'complianz' );
	if ( container ) {
		cmplzRenderSettings(container);
	} else {
		//delay 1000 ms and try again
		setTimeout(() => {
			if (container) {
				cmplzRenderSettings(container);
			}
		},1000);
	}
});


Zerion Mini Shell 1.0