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

This commit is contained in:
Peng Xiao authored and GitHub committed 2023-04-23 01:42:52 -05:00
1 parent 33261558f6
commit be9095ec19
5 files changed
+47 -37

No files matched your search

@@ -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),