Skip to content

Commit

Permalink
Merge pull request #267 from lincbrain/ak-href
Browse files Browse the repository at this point in the history
Make nav bar only have one window.open call for WebKnossos
  • Loading branch information
aaronkanzer authored Oct 11, 2024
2 parents d5a87ff + 76a7253 commit 9f255e1
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 9f255e1

Please sign in to comment.