Add Discord collectibles IPC and bump cinny for profile overlays.
All checks were successful
All checks were successful
Wire electron-side catalog fetch and asset download, exposing collectibles APIs to the renderer for live Discord shop browsing and Matrix profile uploads.
This commit is contained in:
@@ -193,7 +193,16 @@ contextBridge.exposeInMainWorld('electron', {
|
||||
protocol: {
|
||||
getStatus: () => ipcRenderer.invoke('protocol:get-status'),
|
||||
repair: () => ipcRenderer.invoke('protocol:repair')
|
||||
}
|
||||
},
|
||||
|
||||
// Discord shop collectibles (catalog + on-demand CDN download)
|
||||
discordCollectibles: {
|
||||
hasToken: () => ipcRenderer.invoke('discord-collectibles:has-token'),
|
||||
setToken: (token) => ipcRenderer.invoke('discord-collectibles:set-token', { token }),
|
||||
clearToken: () => ipcRenderer.invoke('discord-collectibles:clear-token'),
|
||||
fetchCatalog: (force = false) => ipcRenderer.invoke('discord-collectibles:fetch-catalog', { force }),
|
||||
downloadAssets: (assets) => ipcRenderer.invoke('discord-collectibles:download-assets', { assets }),
|
||||
},
|
||||
});
|
||||
|
||||
// Preload script ready
|
||||
|
||||
Reference in New Issue
Block a user