mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
This commit is contained in:
parent
a7c617dac4
commit
21fa56e882
@ -62,6 +62,10 @@ export const openFileById = async (options: {
|
||||
};
|
||||
|
||||
export const openAsset = (assetPath: string, page: number | string, position?: string) => {
|
||||
const suffix = pathPosix().extname(assetPath.split("?page")[0]);
|
||||
if (!Constants.SIYUAN_ASSETS_EXTS.includes(suffix)) {
|
||||
return;
|
||||
}
|
||||
openFile({
|
||||
assetPath,
|
||||
page,
|
||||
|
Loading…
Reference in New Issue
Block a user