obsidian-prompt icon indicating copy to clipboard operation
obsidian-prompt copied to clipboard

Refactor checkCallback

Open hungsu opened this issue 4 years ago • 0 comments

https://github.com/hungsu/obsidian-prompt/blob/1ceafe8bf6135b46a550620bb634833c0e02f500/main.ts#L44 I think you don't really need this whole checkCallback thing here, you can simply use a callback and call showRandomPrompt directly since you don't interact with the active leaf.

hungsu avatar Oct 27 '21 21:10 hungsu