He agregado un detector de eventos new-window a mi vista web, pero no funciona a menos que tenga allowpopups configurar ventanas emergentes. La cuestión es que, cuando se establece allowpopups , crea automáticamente una nueva ventana que no quiero. Aquí hay un fragmento de mi código:
view.addEventListener('new-window', (e) => { // I thought `preventDefault` could work, but it doesn't. e.preventDefault(); // This function creates a new tab in the browser that I'm making createTab(e.url); });¿Hay alguna manera de evitar que la ventana aparezca?