onlyoffice: fix pdf

This commit is contained in:
undefined committed 2024-09-29 08:04:23 +08:00
1 parent 236d067c55
commit dba3d03fcd
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -37,7 +37,8 @@ const getEles = (types: string[]) => types.flatMap((type) => $(`div[data-${type}
addPage(new AutoloadPage('onlyoffice', async () => {
const all = getEles(['doc', 'docx', 'cell', 'xls', 'xlsx', 'slide', 'ppt', 'pptx', 'pdf']);
if (all.length) await load();
getEles(['doc', 'docx', 'pdf']).forEach(loader('word'));
getEles(['doc', 'docx']).forEach(loader('word'));
getEles(['cell', 'xls', 'xlsx']).forEach(loader('cell'));
getEles(['slide', 'ppt', 'pptx']).forEach(loader('slide'));
getEles(['pdf']).forEach(loader('pdf'));
}));
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/onlyoffice",
"version": "1.4.1",
"version": "1.4.2",
"main": "index.ts",
"repository": "git@github.com:hydro-dev/Hydro.git",
"author": "undefined <i@undefined.moe>",