You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Chore: Apply changes from mobile plugins to lib/
and app-desktop/
(#10079)
This commit is contained in:
@ -6,7 +6,7 @@ export default class NavService {
|
||||
public static dispatch: Function = () => {};
|
||||
private static handlers_: OnNavigateCallback[] = [];
|
||||
|
||||
public static async go(routeName: string) {
|
||||
public static async go(routeName: string, additionalProps: Record<string, any>|null = null) {
|
||||
if (this.handlers_.length) {
|
||||
const r = await this.handlers_[this.handlers_.length - 1]();
|
||||
if (r) return r;
|
||||
@ -15,6 +15,7 @@ export default class NavService {
|
||||
this.dispatch({
|
||||
type: 'NAV_GO',
|
||||
routeName: routeName,
|
||||
...additionalProps,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user