feat(desktop): 系统托盘 + 窗口记忆 + 主题跟随系统 + 数据目录入口;设置面板去浏览器语义(A/B/C 组改动)
This commit is contained in:
1 parent
90c29920c0
commit
eadd5f3d65
15 files changed
+401
-37
No files matched your search
@@ -2185,7 +2185,8 @@
|
||||
const blob = new Blob([JSON.stringify(data, null, 1)], { type: 'application/json' })
|
||||
const outName = safeName.replace(/\.iwb\.json$/i, '') + '.iwb.json'
|
||||
// 统一出口:桌面端弹系统另存为(原生),网页端仍走 <a download>
|
||||
if (typeof window !== 'undefined' && window.__IWB_SAVE_BLOB__) window.__IWB_SAVE_BLOB__(blob, outName)
|
||||
const bridge = (typeof window !== 'undefined') ? window.IWBDesktop : null
|
||||
if (bridge && bridge.ready && bridge.ready()) bridge.saveBlob(blob, outName)
|
||||
else {
|
||||
const a = document.createElement('a')
|
||||
a.href = URL.createObjectURL(blob); a.download = outName; document.body.appendChild(a); a.click(); document.body.removeChild(a)
|
||||
|
||||
Reference in new issue
Block a user