HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: /home/yoyo0427/www/www.yn-artspace.com/wp-content/plugins/jetpack/modules/wordads/js/cmp-loader.js
function a8c_cmp_callback( data ) {
	if ( data && data.scripts && Array.isArray( data.scripts ) ) {
		if ( data.config ) {
			let configurationScript = document.createElement( 'script' );
			configurationScript.id = 'cmp-configuration';
			configurationScript.type = 'application/configuration';
			configurationScript.innerHTML = JSON.stringify( data.config );

			// Add the cmp-configuration script element to the document's body
			document.head.appendChild( configurationScript );
		}

		// Load each cmp script
		data.scripts.forEach( function ( scriptUrl ) {
			let script = document.createElement( 'script' );
			script.src = scriptUrl;
			document.head.appendChild( script );
		} );
	}
}
window.a8c_cmp_callback = a8c_cmp_callback;