Skip to content

Commit

Permalink
* zin: fix lib path.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jan 30, 2024
1 parent 9b74e0a commit 46e219c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/dom/get-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $.getLib = function<T = unknown> (optionsOrSrc: string | (GetLibOptions & {src:
}
const {root = $.libRoot} = options;
if (root) {
src = `${root}${(root.endsWith('/') && src.startsWith('/')) ? '' : '/'}${src}`;
src = `${root}${(root.endsWith('/') || src.startsWith('/')) ? '' : '/'}${src}`;
}

const {success, name} = options;
Expand Down

0 comments on commit 46e219c

Please sign in to comment.