Skip to content

Commit

Permalink
fix: The offline account does not trigger yggrasil agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Dec 18, 2023
1 parent ca1c844 commit c0fe908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmcl-keystone-ui/src/composables/launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export function useLaunchOption(instance: Ref<Instance>, resolvedVersion: Ref<Re
let yggdrasilAgent: LaunchOptions['yggdrasilAgent']

const authority = tryParseUrl(userProfile.value.authority)
if (authority && (authority.protocol === 'http:' || authority?.protocol === 'https:' || authority.toString() === AUTHORITY_DEV)) {
if (authority && (authority.protocol === 'http:' || authority?.protocol === 'https:' || userProfile.value.authority === AUTHORITY_DEV)) {
yggdrasilAgent = {
jar: await getOrInstallAuthlibInjector(),
server: authority.toString(),
server: userProfile.value.authority,
}
}

Expand Down

0 comments on commit c0fe908

Please sign in to comment.