mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🚨
This commit is contained in:
parent
40a1e6d5cc
commit
79a88dfbec
2 changed files with 4 additions and 4 deletions
|
|
@ -746,7 +746,7 @@ export const openMenuPanel = (options: {
|
|||
break;
|
||||
} else if (type === "openAssetItem") {
|
||||
const assetLink = target.parentElement.dataset.content;
|
||||
const suffix = pathPosix().extname(assetLink)
|
||||
const suffix = pathPosix().extname(assetLink);
|
||||
if (isLocalPath(assetLink) && !isMobile() && (
|
||||
[".pdf"].concat(Constants.SIYUAN_ASSETS_AUDIO).concat(Constants.SIYUAN_ASSETS_VIDEO).includes(suffix) && (
|
||||
suffix !== ".pdf" || ( suffix === ".pdf" && !assetLink.startsWith("file://"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue