diff --git a/website/web/static/tree.js b/website/web/static/tree.js
index b76e474..3407690 100644
--- a/website/web/static/tree.js
+++ b/website/web/static/tree.js
@@ -63,9 +63,10 @@ function openTreeInNewTab(capture_uuid, hostnode_uuid=null) {
}
let win = window.open(url, '_blank');
if (win == null) {
- alert("The browser didn't allow Lookyloo to open a new tab. There should be an icon on the right of your URL bar to allow it.");
+ return false;
}
win.focus();
+ return true;
}
function open_hostnode_popup(hostnode_uuid) {
diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html
index 9f2c1c2..64be22f 100644
--- a/website/web/templates/hostname_popup.html
+++ b/website/web/templates/hostname_popup.html
@@ -42,8 +42,13 @@
});