feat: 文件预览(MD渲染/TXT/PDF/图片 + 标签去重) + 预设3改左二右一对话 + 服务端MIME补pdf/markdown
This commit is contained in:
@@ -27,6 +27,7 @@ const sandbox = { self: null,
|
||||
addEventListener(){}, removeEventListener(){},
|
||||
},
|
||||
localStorage: { getItem(){ return null }, setItem(){}, removeItem(){} },
|
||||
atob: (s) => Buffer.from(s, 'base64').toString('binary'), btoa: (s) => Buffer.from(s, 'binary').toString('base64'),
|
||||
CustomEvent: class { constructor(t, o){ this.type = t; this.detail = o && o.detail } },
|
||||
ResizeObserver: class { observe(){} disconnect(){} },
|
||||
MutationObserver: class { observe(){} disconnect(){} },
|
||||
|
||||
Reference in New Issue
Block a user