HEX
Server: Apache
System: Linux host17.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User: shrsglobal (7178)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //home/shrsglobal/www/wp-content/plugins/w3-total-cache/Generic_WidgetBoldGrid_View.js
jQuery( document ).ready( function( $ ) {
	$( window ).on( 'message', function( event ) {
		var originalEvent  = event.originalEvent,
			expectedOrigin = document.location.protocol + '//' + document.location.hostname,
			message;

		if ( originalEvent.origin !== expectedOrigin ) {
			return;
		}

		if ( originalEvent.data ) {
			try {
				message = $.parseJSON( originalEvent.data );
			} catch ( e ) {
				return;
			}
		}

		if ( ! message || 'undefined' === typeof message.action ) {
			return;
		}

		if (message.action == 'install-plugin') {
			window.location = $('#w3tc-boldgrid-install').prop('href');
		}
	});
});