Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/w3-total-cache/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/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');
}
});
});