Fix open recipe chat via deeplink (#3773)
Co-authored-by: Zane Staggs <zane@squareup.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user