HEX
Server: LiteSpeed
System: Linux server490.bertina.biz 5.14.0-687.31.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Aug 1 05:38:01 EDT 2026 x86_64
User: parskavirpaya (1252)
PHP: 8.1.34
Disabled: mail, show_source, system, shell_exec, passthru, exec, popen
Upload Files
File: /home/parskavirpaya/public_html/wp-content/themes/porto1/js/woocommerce-worker.js
function load_wishlist( ajaxurl, nonce ) {
	var xhr = new XMLHttpRequest();
	xhr.open( 'POST', ajaxurl, true );
	xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xhr.onreadystatechange = function() {
		if ( this.readyState === XMLHttpRequest.DONE && this.status === 200 ) {
			try {
				res = xhr.responseText;
				if ( res ) {
					postMessage( res );
				}
			} catch ( error ) {
				console.warn( error );
			}
		}
	};

	var data = 'action=porto_load_wishlist&nonce=' + nonce;
	xhr.send(data);
}

onmessage = function(e) {
	if ( e.data ) {
		if ( e.data.initWishlist ) {
			setTimeout(function() {
				load_wishlist( e.data.ajaxurl, e.data.nonce );
			}, 300);
		} else if ( e.data.loadWishlist ) {
			load_wishlist( e.data.ajaxurl, e.data.nonce );
		} else if ( e.data.exit ) {
			close();
		}
	}
};