You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-24 23:26:50 +02:00
Desktop: Allow customising application layout
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import uuid from '../../../uuid';
|
||||
import Plugin from '../Plugin';
|
||||
|
||||
export type ViewHandle = string;
|
||||
|
||||
export default function createViewHandle(plugin: Plugin): ViewHandle {
|
||||
return `plugin-view-${plugin.id}-${uuid.createNano()}`;
|
||||
export default function createViewHandle(plugin: Plugin, id: string): ViewHandle {
|
||||
if (!id) throw new Error('A view ID must be provided');
|
||||
return `plugin-view-${plugin.id}-${id}`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user