mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 09:14:20 +01:00
⚡
This commit is contained in:
parent
cc79e602f4
commit
e996975722
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import {Constants} from "../constants";
|
||||
import {pathPosix} from "../util/pathName";
|
||||
/// #if !MOBILE
|
||||
import {getAllModels} from "../layout/getAll";
|
||||
/// #endif
|
||||
import {pathPosix} from "../util/pathName";
|
||||
|
||||
export const renderAssetsPreview = (pathString: string) => {
|
||||
if (!pathString) {
|
||||
|
|
@ -19,6 +21,7 @@ export const renderAssetsPreview = (pathString: string) => {
|
|||
};
|
||||
|
||||
export const pdfResize = () => {
|
||||
/// #if !MOBILE
|
||||
getAllModels().asset.forEach(item => {
|
||||
const pdfInstance = item.pdfObject;
|
||||
if (!pdfInstance) {
|
||||
|
|
@ -39,4 +42,5 @@ export const pdfResize = () => {
|
|||
}
|
||||
pdfViewer.update();
|
||||
});
|
||||
/// #endif
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue