Skip to content

Commit d0f0600

Browse files
committed
allow module resolution for href attributes
1 parent 469e7f7 commit d0f0600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datex-bindings/dom-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ export class DOMUtils {
777777

778778
// src path with import map specifier
779779
// TODO: currently only enabled for specific folder names to keep backwards compatibility, this should be enabled for all paths
780-
else if (attr === "src" && typeof val == "string" && (val.startsWith("common/") || val.startsWith("frontend/"))) {
780+
else if ((attr === "src" || attr === "href") && typeof val == "string" && (val.startsWith("common/") || val.startsWith("frontend/"))) {
781781
element.setAttribute(attr, `/@uix/src/${val}`);
782782
}
783783

0 commit comments

Comments
 (0)