chore: generate
This commit is contained in:
parent
f565ff3c09
commit
277ecc505c
1 changed files with 1 additions and 2 deletions
|
|
@ -32,8 +32,7 @@ export const draftHref = (draftID: string) => `/new-session?draftId=${encodeURIC
|
|||
export const tabHref = (tab: Tab) =>
|
||||
tab.type === "draft" ? draftHref(tab.draftID) : `/${tab.dirBase64}/session/${tab.sessionId}`
|
||||
|
||||
export const tabKey = (tab: Tab) =>
|
||||
tab.type === "draft" ? `draft:${tab.draftID}` : `${tab.server}\n${tabHref(tab)}`
|
||||
export const tabKey = (tab: Tab) => (tab.type === "draft" ? `draft:${tab.draftID}` : `${tab.server}\n${tabHref(tab)}`)
|
||||
|
||||
export function sessionHasOpenTab(tabs: Tab[], server: ServerConnection.Key, session: Session) {
|
||||
const dirBase64 = base64Encode(session.directory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue