mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 21:16:06 +00:00
fix(desktop): correct user code extraction when URL contains colons (#28837)
This commit is contained in:
parent
63f3e84792
commit
3cf955e9ad
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ export function DialogConnectProvider(props: { provider: string }) {
|
|||
const code = createMemo(() => {
|
||||
const instructions = store.authorization?.instructions
|
||||
if (instructions?.includes(":")) {
|
||||
return instructions.split(":")[1]?.trim()
|
||||
return instructions.split(":").pop()?.trim()
|
||||
}
|
||||
return instructions
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue