mirror of https://github.com/CIRCL/lookyloo
parent
64fff3ec7f
commit
6a4b42bafe
|
@ -63,9 +63,10 @@ function openTreeInNewTab(capture_uuid, hostnode_uuid=null) {
|
||||||
}
|
}
|
||||||
let win = window.open(url, '_blank');
|
let win = window.open(url, '_blank');
|
||||||
if (win == null) {
|
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();
|
win.focus();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function open_hostnode_popup(hostnode_uuid) {
|
function open_hostnode_popup(hostnode_uuid) {
|
||||||
|
|
|
@ -43,7 +43,12 @@
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
let whereAmI = (hostnode_uuid) => window.opener.LocateNode(hostnode_uuid);
|
let whereAmI = (hostnode_uuid) => window.opener.LocateNode(hostnode_uuid);
|
||||||
let openTreeInNewTab = (capture_uuid, hostnode_uuid=Null) => window.opener.openTreeInNewTab(capture_uuid, hostnode_uuid);
|
let openTreeInNewTab = (capture_uuid, hostnode_uuid=Null) => {
|
||||||
|
let success = window.opener.openTreeInNewTab(capture_uuid, hostnode_uuid);
|
||||||
|
if (! success) {
|
||||||
|
alert("The browser didn't allow Lookyloo to open a new tab. There should be an icon on the right of your URL bar *in the main window* to allow it.");
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
|
|
Loading…
Reference in New Issue