mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 15:04:07 +01:00
🎨 Open the Explorer window in the foreground (#14828)
fix https://github.com/siyuan-note/siyuan/issues/12652
This commit is contained in:
parent
6ce25af3c6
commit
bf08509986
8 changed files with 25 additions and 12 deletions
|
|
@ -21,6 +21,12 @@ export const showFileInFolder = (filePath: string) => {
|
|||
/// #endif
|
||||
};
|
||||
|
||||
export const openPath = (filePath: string) => {
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_OPEN_PATH, filePath);
|
||||
/// #endif
|
||||
};
|
||||
|
||||
export const getIdZoomInByPath = () => {
|
||||
const searchParams = new URLSearchParams(window.location.search);
|
||||
const PWAURL = searchParams.get("url");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue