mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bug fix
This commit is contained in:
1 parent
c2f63c80e1
commit
e027b74f2d
6 files changed
+7
-7
No files matched your search
@@ -109,7 +109,7 @@ export function Media(md: MarkdownIt) {
|
||||
`;
|
||||
}
|
||||
if (service === 'pdf') {
|
||||
if (src.startsWith('file://')) src += src.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
|
||||
if (src.startsWith('file://') || src.startsWith('./')) src += src.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
|
||||
return `\
|
||||
<object classid="clsid:${randomUUID().toUpperCase()}">
|
||||
<param name="SRC" value="${src}" >
|
||||
|
||||
Reference in new issue
Block a user