Skip to content

Commit 5253615

Browse files
Add path patching for symbols
1 parent f4765c5 commit 5253615

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ui/widgets/EmbeddedDisplay/opiParser.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,14 @@ function opiPatchPaths(
824824
}
825825
}
826826
}
827+
828+
// symbols: list of string file paths
829+
if ( widgetDescription["symbols"] && parentDir) {
830+
widgetDescription["symbols"] = widgetDescription["symbols"].map((symbol: string) => {
831+
if (symbol.startsWith("http")) return symbol;
832+
return normalisePath(symbol, parentDir);
833+
})
834+
}
827835
}
828836

829837
function opiPatchActions(widgetDescription: WidgetDescription): void {

0 commit comments

Comments
 (0)