Fix open recipe chat via deeplink (#3773)

Co-authored-by: Zane Staggs <zane@squareup.com>
This commit is contained in:
Lifei Zhou
2025-08-02 04:32:18 +10:00
committed by GitHub
parent a33460244c
commit ba9981d1fc
4 changed files with 23 additions and 3 deletions
+5
View File
@@ -247,6 +247,11 @@ const appConfigAPI: AppConfigAPI = {
getAll: () => config,
};
// Listen for recipe updates and update config directly
ipcRenderer.on('recipe-decoded', (_, decodedRecipe) => {
config.recipe = decodedRecipe;
});
// Expose the APIs
contextBridge.exposeInMainWorld('electron', electronAPI);
contextBridge.exposeInMainWorld('appConfig', appConfigAPI);