mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: copilot not working (#3425)
This commit is contained in:
@@ -20,6 +20,14 @@ export const entry = (context: PluginContext) => {
|
||||
};
|
||||
});
|
||||
|
||||
context.register('formatBar', div => {
|
||||
const root = createRoot(div);
|
||||
root.render(createElement(HeaderItem));
|
||||
return () => {
|
||||
root.unmount();
|
||||
};
|
||||
});
|
||||
|
||||
return () => {
|
||||
console.log('unregister');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user