Files
roi-theme/wp-content/plugins/w3-total-cache/Generic_WidgetBoldGrid_View.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

28 lines
625 B
JavaScript
Executable File

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');
}
});
});