mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 04:10:16 +01:00
This commit is contained in:
parent
668e5826e2
commit
8ba7a703ed
5 changed files with 6 additions and 6 deletions
|
|
@ -74,7 +74,7 @@ export const openNewWindowById = async (id: string | string[], options: windowOp
|
|||
|
||||
export const openAssetNewWindow = (assetPath: string, options: windowOptions = {}) => {
|
||||
/// #if !BROWSER
|
||||
const suffix = pathPosix().extname(assetPath.split("?page")[0]);
|
||||
const suffix = pathPosix().extname(assetPath).split("?")[0];
|
||||
if (Constants.SIYUAN_ASSETS_EXTS.includes(suffix)) {
|
||||
let docIcon = "iconPDF";
|
||||
if (Constants.SIYUAN_ASSETS_IMAGE.includes(suffix)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue