Skip to content

Commit

Permalink
feat: adjust the order
Browse files Browse the repository at this point in the history
  • Loading branch information
Nauxscript committed Dec 21, 2022
1 parent 8d7dab2 commit bfb2f4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getIntranetIP = () => (app.systemInfo() as any).ipv4Address

export const parsePort = (port: string): Selection => {
return {
title: `Port:${port}`,
title: `Port: ${port}`,
subtitle: `http://localhost:${port}`,
arg: `localhost:${port}`,
mods: {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import type { Selection } from './types'
export default function run(argv: [string, boolean]) {
const query = argv[0]
const items = []
const currPort = parsePort(query)
query && items.push(currPort)
const envPortsStr = getenv('myPort') as string
envPortsStr && items.push(...parseEnvPort(envPortsStr))
items.push(parsePort('8080'))
const currPort = parsePort(query)
query && items.push(currPort)

const result: {
items: Selection[]
Expand Down

0 comments on commit bfb2f4d

Please sign in to comment.