mirror of
				https://github.com/open-webui/assistant
				synced 2025-06-26 18:15:57 +00:00 
			
		
		
		
	Update main.ts
This commit is contained in:
		
							parent
							
								
									376cbabe52
								
							
						
					
					
						commit
						45b8127174
					
				| @ -246,7 +246,7 @@ const saveConfigToFile = async () => { | ||||
|   ); | ||||
| }; | ||||
| 
 | ||||
| const AltCmdOShortcutHandler = async () => { | ||||
| const ResponseHandler = async () => { | ||||
|   if (WEBUI_VERSION === null) { | ||||
|     console.log(config); | ||||
|     await new Notification({ | ||||
| @ -293,7 +293,7 @@ const AltCmdOShortcutHandler = async () => { | ||||
|   }); | ||||
| }; | ||||
| 
 | ||||
| const AltCmdIShortcutHandler = async () => { | ||||
| const CompletionHandler = async () => { | ||||
|   if (WEBUI_VERSION === null) { | ||||
|     console.log(config); | ||||
|     await new Notification({ | ||||
| @ -379,8 +379,8 @@ app | ||||
|       saveConfigToFile(); | ||||
|     }); | ||||
| 
 | ||||
|     globalShortcut.register("Alt+CommandOrControl+O", AltCmdOShortcutHandler); | ||||
|     globalShortcut.register("Alt+CommandOrControl+I", AltCmdIShortcutHandler); | ||||
|     globalShortcut.register("Alt+CommandOrControl+'", ResponseHandler); | ||||
|     globalShortcut.register("Alt+CommandOrControl+;", CompletionHandler); | ||||
|   }) | ||||
|   .then(createWindow); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user