Skip to content

Commit

Permalink
fix(cli): fix cf site logic
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Jul 7, 2024
1 parent 5f9c0b5 commit da2766e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-cli/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export function watchTheme(
}

export function getMobileIndex() {
const isCf = config._cf.includes(window.location.origin)
const isCf = config._cf.some((path: string) => window.location.origin.includes(path))
return isCf ? './mobile' : './mobile.html'
}

Expand Down

0 comments on commit da2766e

Please sign in to comment.