Update main.ts

This commit is contained in:
Timothy J. Baek 2024-03-15 13:42:06 -07:00
parent 376cbabe52
commit 45b8127174

View File

@ -246,7 +246,7 @@ const saveConfigToFile = async () => {
); );
}; };
const AltCmdOShortcutHandler = async () => { const ResponseHandler = async () => {
if (WEBUI_VERSION === null) { if (WEBUI_VERSION === null) {
console.log(config); console.log(config);
await new Notification({ await new Notification({
@ -293,7 +293,7 @@ const AltCmdOShortcutHandler = async () => {
}); });
}; };
const AltCmdIShortcutHandler = async () => { const CompletionHandler = async () => {
if (WEBUI_VERSION === null) { if (WEBUI_VERSION === null) {
console.log(config); console.log(config);
await new Notification({ await new Notification({
@ -379,8 +379,8 @@ app
saveConfigToFile(); saveConfigToFile();
}); });
globalShortcut.register("Alt+CommandOrControl+O", AltCmdOShortcutHandler); globalShortcut.register("Alt+CommandOrControl+'", ResponseHandler);
globalShortcut.register("Alt+CommandOrControl+I", AltCmdIShortcutHandler); globalShortcut.register("Alt+CommandOrControl+;", CompletionHandler);
}) })
.then(createWindow); .then(createWindow);