Skip to content

Commit

Permalink
fix: wrong position when open from command
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvanduocit committed Dec 15, 2022
1 parent fa6d23c commit 5900250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fns/registerGate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

0 comments on commit 5900250

Please sign in to comment.