Skip to content

Commit

Permalink
Allow placeholder reference to static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Feb 1, 2025
1 parent dc48717 commit f56959c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_static/js/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class WorkflowContainer {
element.classList.add("highlight-bonsai");
const img = element.querySelector("img");

// assumes workflow references in _static/workflows
const workflowPath = img.src.replace("_images", "_static/workflows");
// assumes workflow references with $ are hosted in _static/
const workflowPath = img.src.replace("$", "_static/");
img.src = workflowPath.replace(/\.[^.]+$/, ".svg");

const wrap = WorkflowContainer.createWorkflowCell(img, workflowPath);
Expand Down

0 comments on commit f56959c

Please sign in to comment.