small refactor

This commit is contained in:
Jan Prochazka
2021-01-30 20:05:50 +01:00
parent a17b76c570
commit a714f7ae54
4 changed files with 10 additions and 11 deletions

View File

@@ -77,14 +77,14 @@ export default function SaveTabModal({
const electron = getElectron();
if (electron) {
const { ipcRenderer } = electron;
window['tabExports'][tabid] = {
window['dbgate_tabExports'][tabid] = {
save: handleSaveRef.current,
saveAs: saveFileModalState.open,
};
ipcRenderer.send('update-menu');
return () => {
delete window['tabExports'][tabid];
delete window['dbgate_tabExports'][tabid];
ipcRenderer.send('update-menu');
};
}