Skip to content
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

obsidian removed support for app://local URLs #41

Open
lyy010714 opened this issue Jul 29, 2023 · 2 comments
Open

obsidian removed support for app://local URLs #41

lyy010714 opened this issue Jul 29, 2023 · 2 comments

Comments

@lyy010714
Copy link

Support for app://local was removed in the obsidian 1.2.8 update, causing the plugin to fail to open local files properly. Hoping that the author will make adjustments to the code to support the new version of obsidian, the following is the official explanation of the removal of the app://local by obsidian

Breaking changes

Removed support for app://local URLs. These were reported as a potential vulnerability when using iframes.

Developers

If you were relying on app://local for functionality within your plugin, you should use vault.getResourcePath(file: TFile) and vault.adapter.getResourcePath(vaultPath: string) as a replacement. These also works on mobile.

@PttRulez
Copy link

Yeah. I can't make normal timestamps for local files :(

@TunaFFish
Copy link

For me it works, even for files loaded from a volume

Timestamp Notes: Open sample modal (complex)
browse to local video

Than I can use the
Timestamp Notes: Insert timestamp based on videos current play time
this will create the

```timestamp 
00:20
 ```

You can also write this code manually ;-)

Clicking on the buttons will seek to the correct time in the video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants