Merge branch 'feature/typescript' of github.com:Mastermindzh/tidal-hifi into feature/theming

This commit is contained in:
2023-05-13 22:55:10 +02:00
9 changed files with 82 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ export const startExpress = (mainWindow: BrowserWindow) => {
* @param {*} res
* @param {*} action
*/
function handleGlobalEvent(res: Response, action: any) {
function handleGlobalEvent(res: Response, action: string) {
mainWindow.webContents.send("globalEvent", action);
res.sendStatus(200);
}

View File

@@ -67,7 +67,7 @@ export const createSettingsWindow = function () {
},
});
settingsWindow.on("close", (event: any) => {
settingsWindow.on("close", (event: Event) => {
if (settingsWindow != null) {
event.preventDefault();
settingsWindow.hide();