This commit is contained in:
Vanessa 2023-10-12 20:23:18 +08:00
parent 40a1e6d5cc
commit 79a88dfbec
2 changed files with 4 additions and 4 deletions

View file

@ -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://"))