Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: zxypro1 <[email protected]>
  • Loading branch information
zxypro1 committed Mar 31, 2024
1 parent cb9cf23 commit 63445c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/load-application/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async (template: string, options: IOptions = {}) => {
return await v3(template, options);
}
assert(template, 'template is required');
if (includes(template, '/') && REGISTRY.CUSTOM_URL in [REGISTRY.V3, REGISTRY.V2]) {
if ((includes(template, '/') && REGISTRY.CUSTOM_URL === REGISTRY.V3) || (REGISTRY.CUSTOM_URL === REGISTRY.V2)) {
return await v2(template, options);
}
try {
Expand Down

0 comments on commit 63445c9

Please sign in to comment.