Vinzent03 / obsidian-advanced-uri

Advanced modes for Obsidian URI
MIT License
725 stars 42 forks source link

exception when involved from markdownload #184

Open pcause opened 4 weeks ago

pcause commented 4 weeks ago

When I try to send a page from my browser to Obsidian using markdownload, advanced URI shows this error in the console:

ncaught (in promise) DOMException: Failed to execute 'readText' on 'Clipboard': Document is not focused. at eval (plugin:obsidian-advanced-uri:4764:53) at t (app://obsidian.md/app.js:1:2296691) at :1:52 at node:electron/js2c/renderer_init:2:16470 at IpcRendererInternal. (node:electron/js2c/renderer_init:2:10723) at IpcRendererInternal.emit (node:events:519:28) at Object.onMessage (node:electron/js2c/renderer_init:2:8837) app.js:1 Received URL action Object

Vinzent03 commented 4 weeks ago

Seems like it requires the app to be focused for the clipboard's content to be accessed. Shouldn't the launch of the uri focus the app? I haven't used markdownload, though.