mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 22:38:49 +01:00
This commit is contained in:
parent
465952ba31
commit
4521665274
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ export const openLink = (protyle: IProtyle, aLink: string, event?: MouseEvent, c
|
|||
if (Constants.SIYUAN_ASSETS_EXTS.includes(pathPosix().extname(linkAddress)) &&
|
||||
(
|
||||
!linkAddress.endsWith(".pdf") ||
|
||||
// 本地 pdf 仅 assets/ 开头的才使用 siyuan 打开
|
||||
(linkAddress.endsWith(".pdf") && linkAddress.startsWith("assets/"))
|
||||
)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue