diff --git a/src/fns/registerGate.ts b/src/fns/registerGate.ts index fffb9f1..79c1791 100644 --- a/src/fns/registerGate.ts +++ b/src/fns/registerGate.ts @@ -23,6 +23,6 @@ export const registerGate = (plugin: Plugin, options: GateFrameOption) => { plugin.addCommand({ id: `open-gate-${btoa(options.url)}`, name: `Open gate ${options.title}`, - callback: async () => await openView(plugin.app.workspace, options.id) + callback: async () => await openView(plugin.app.workspace, options.id, options.position) }) }