kxxt / obsidian-advanced-paste

Advanced pasting functionality for obsidian
MIT License
42 stars 2 forks source link

Use mime instead of mime-types for compatibility with Obsidian mobile #11

Closed mardukbp closed 1 year ago

mardukbp commented 1 year ago

mime-types depends on the NodeJS library path. And NodeJS APIs are not available in Obsidian mobile. Therefore "Advanced Paste for Obsidian" crashes while loading on a mobile device.

The mime library does not have any dependency on NodeJS.

I switched the libraries, compiled the plugin and now it starts on my Android phone. I tested it with text/plain in the clipboard.

Thank you for developing this awesome plugin! Now I have cross-vault links :)

kxxt commented 1 year ago

Thanks! I have fixed it in v2.5.0.

It is nice to hear that you find a great way to use my plugin.

mardukbp commented 1 year ago

Awesome! Thanks for the quick fix :)