You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Mobile: Fix plugins aren't visible after switching to a new profile (#10386)
This commit is contained in:
@ -1,10 +1,16 @@
|
||||
import PluginService from '@joplin/lib/services/plugins/PluginService';
|
||||
import { Store } from 'redux';
|
||||
import BasePluginRunner from '@joplin/lib/services/plugins/BasePluginRunner';
|
||||
|
||||
const pluginServiceSetup = () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
const runner = { run: ()=> {}, stop: ()=>{} } as any;
|
||||
class MockPluginRunner extends BasePluginRunner {
|
||||
public override async run() {}
|
||||
public override async stop() {}
|
||||
}
|
||||
|
||||
const pluginServiceSetup = (store: Store) => {
|
||||
const runner = new MockPluginRunner();
|
||||
PluginService.instance().initialize(
|
||||
'2.14.0', { joplin: {} }, runner, { dispatch: ()=>{}, getState: ()=>{} },
|
||||
'2.14.0', { joplin: {} }, runner, store,
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user