mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-01 06:10:16 +08:00
refactor: find in page (#7086)
- refactor rxjs data flow - use canvas text to mitigate searchable search box input text issue
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { contextBridge } from 'electron';
|
||||
|
||||
import { affine, appInfo, cmdFind, getElectronAPIs } from './electron-api';
|
||||
import { affine, appInfo, getElectronAPIs } from './electron-api';
|
||||
|
||||
const { apis, events } = getElectronAPIs();
|
||||
|
||||
@@ -10,7 +10,6 @@ contextBridge.exposeInMainWorld('events', events);
|
||||
|
||||
try {
|
||||
contextBridge.exposeInMainWorld('affine', affine);
|
||||
contextBridge.exposeInMainWorld('cmdFind', cmdFind);
|
||||
} catch (error) {
|
||||
console.error('Failed to expose affine APIs to window object!', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user