mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
Fix Shortcuts help menu doesn't dismiss forever.
This commit is contained in:
@@ -23,6 +23,7 @@ function init({store, storage}) {
|
||||
async function main() {
|
||||
const notification = createNotificationService(toast);
|
||||
const context = await createContext({reducers, graphqlExtension, pluginsConfig, notification, init});
|
||||
|
||||
render(
|
||||
<TalkProvider {...context}>
|
||||
<App />
|
||||
|
||||
@@ -178,6 +178,10 @@ export async function createContext({
|
||||
await preInit(context);
|
||||
}
|
||||
|
||||
if (init) {
|
||||
await init(context);
|
||||
}
|
||||
|
||||
// Run initialization.
|
||||
await Promise.all([init, plugins.executeInit(context)]);
|
||||
return context;
|
||||
|
||||
Reference in New Issue
Block a user