fix: 修复桌面集成失效 + 清理死代码
- main.ts: window.__metonaBridge → window.metonaDesktop(与 preload.ts 对齐) - 删除 DesktopBridge 接口和 __metonaBridge 类型(从未使用) - 删除 extractDocument(定义了但无调用) - 删除 logIPC(导出了但零引用) - 删除 getMessagesContainer(导出了但无调用) - SAFE_DATA_TYPES 去掉多余的 export - vite.config.ts 移除未使用的 server 配置
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
export const SAFE_URI_SCHEMES = new Set(['http:', 'https:', 'mailto:', 'tel:', 'ftp:', 'ftps:', 'xmpp:']);
|
||||
export const SAFE_DATA_TYPES = new Set(['image/png', 'image/jpeg', 'image/gif', 'image/webp', 'image/svg+xml']);
|
||||
const SAFE_DATA_TYPES = new Set(['image/png', 'image/jpeg', 'image/gif', 'image/webp', 'image/svg+xml']);
|
||||
|
||||
const ALLOWED_TAGS = new Set([
|
||||
'a', 'abbr', 'b', 'blockquote', 'br', 'code', 'del', 'details', 'div',
|
||||
|
||||
Reference in New Issue
Block a user