mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 07:24:07 +01:00
This commit is contained in:
parent
f2f292c5fa
commit
56fe8371d1
13 changed files with 57 additions and 33 deletions
|
|
@ -6,8 +6,17 @@ import {getSearch, isMobile} from "./functions";
|
|||
import {focusByRange} from "../protyle/util/selection";
|
||||
import {unicode2Emoji} from "../emoji";
|
||||
import {Constants} from "../constants";
|
||||
/// #if !BROWSER
|
||||
import {ipcRenderer} from "electron";
|
||||
/// #endif
|
||||
import {showMessage} from "../dialog/message";
|
||||
|
||||
export const showFileInFolder = (filePath: string) => {
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_OPEN_FOLDER, 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