typescript: Implement some TODOs.

This commit is contained in:
Manav Mehta
2020-02-29 14:49:32 +05:30
committed by Anders Kaseorg
parent 340797ca10
commit 20c6f487c4
5 changed files with 6 additions and 12 deletions

View File

@@ -290,9 +290,7 @@ class GeneralSection extends BaseSection {
const newValue = !ConfigUtil.getConfigItem('silent', true);
ConfigUtil.setConfigItem('silent', newValue);
this.updateSilentOption();
// TODO: TypeScript: currentWindow of type BrowserWindow doesn't
// have a .send() property per typescript.
(currentBrowserWindow as any).send('toggle-silent', newValue);
currentBrowserWindow.webContents.send('toggle-silent', newValue);
}
});
}