build: fix electron build gain focus on reloading in dev (#2088)

This commit is contained in:
Peng Xiao
2023-04-23 14:42:52 +08:00
committed by GitHub
parent 33261558f6
commit be9095ec19
5 changed files with 47 additions and 37 deletions

View File

@@ -23,7 +23,6 @@ import { isMacOS } from '../../utils';
*/
contextBridge.exposeInMainWorld('apis', {
db: {
// TODO: do we need to store the workspace list locally?
// workspace providers
getDoc: (id: string): Promise<Uint8Array | null> =>
ipcRenderer.invoke('db:get-doc', id),