Skip to content

Commit

Permalink
Make nav bar only have one window.open call for WebKnossos
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Oct 11, 2024
1 parent 274bf60 commit 76a7253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/AppBar/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const navItems: NavigationItem[] = [
{
text: 'WebKNOSSOS',
to: lincWebKNOSSOSUrl,
external: true,
external: false, // window.open is called in the function
onClick: () => {
handleWebKNOSSOSClick();
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/FileBrowserView/FileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ async function handleWebKnossosClick(url: string) {
});
const data = await response.json();
console.log(data);
await sleep(2000);
await sleep(1000);
window.open(url, '_blank');
}
Expand Down

0 comments on commit 76a7253

Please sign in to comment.