mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
unix update command for wsl users on UpdateBanner (#395)
This commit is contained in:
committed by
GitHub
parent
090b8d9fc2
commit
81f29dfe6e
@@ -17,6 +17,7 @@ import { handleImage, handleUpload, handleServerReady, handleDraftSave, handleDr
|
||||
import { handleDoc, handleFileBrowserFiles } from "./reference-handlers";
|
||||
import { contentHash, deleteDraft } from "./draft";
|
||||
import { dirname } from "path";
|
||||
import { isWSL } from "./browser";
|
||||
|
||||
// Re-export utilities
|
||||
export { isRemoteSession, getServerPort } from "./remote";
|
||||
@@ -95,6 +96,7 @@ export async function startAnnotateServer(
|
||||
|
||||
const isRemote = isRemoteSession();
|
||||
const configuredPort = getServerPort();
|
||||
const wslFlag = await isWSL();
|
||||
const draftKey = contentHash(markdown);
|
||||
|
||||
// Detect repo info (cached for this session)
|
||||
@@ -135,6 +137,7 @@ export async function startAnnotateServer(
|
||||
pasteApiUrl,
|
||||
repoInfo,
|
||||
projectRoot: folderPath || process.cwd(),
|
||||
isWSL: wslFlag,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user