Skip to content

Commit

Permalink
Merge pull request #2 from deanrather/main
Browse files Browse the repository at this point in the history
open urls in new window
  • Loading branch information
bensmithett authored Feb 11, 2024
2 parents d9481d5 + c9e4a85 commit 1130ab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export class Router {

handleElementDoubleClick = (event, elementId) => {
const element = structurizr.workspace.findElementById(elementId)

if(element.url) window.open(element.url, '_blank');

switch (element.type) {
case structurizr.constants.SOFTWARE_SYSTEM_ELEMENT_TYPE:
Expand Down

0 comments on commit 1130ab5

Please sign in to comment.