-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exception when involved from markdownload #184
Comments
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. |
I have the same issue. I can reproduce using a uri like: obsidian://advanced-uri?vault=Myvault&clipboard=true&mode=new&filepath=90 - Web Clippings/test.md This is the uri that markdownload is triggering If I remove the I tried with both, Obsidian already open or closed. |
I am not sure if it will be helpful but I dig their code for this line: https://github.com/deathau/markdownload/blob/7e8cc1a2156a5b413db133677641c3f8a23cd39d/src/contentScript/contentScript.js#L106 Bug behavior:
|
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
The text was updated successfully, but these errors were encountered: