From a98a9300c29605191601ce42979cc0723496e471 Mon Sep 17 00:00:00 2001 From: Dario Baumberger Date: Wed, 7 Feb 2024 08:19:51 +0100 Subject: [PATCH] Added hints for mobile usage --- README.md | 4 ++++ src/main.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ffba729..a4b1d4c 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ Recognize Text on images in your notes. Select the image and run the command. Th | URL | `https://www.example.com/example.png` | URL to an image | | img Tag | `` | Img tag with a valid src attribute | +## Supported Devices + +Obsidian images are not supported on mobile devices since the file adapter works only on desktop. All other images are available also on mobile. + ## Installation ### Community Plugin diff --git a/src/main.ts b/src/main.ts index 4679c53..15ac144 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,7 +29,8 @@ const MESSAGE_FILETYPE = const MESSAGE_CONTENT = "Not supported content. Allowed: Obsidian Images, Markdown Images and Urls"; const MESSAGE_PATH = "Could not resolve image path"; -const MESSAGE_ADAPTER = "Error resolving adapter"; +const MESSAGE_ADAPTER = + "Error resolving adapter. Obsidian images are not supported on mobile devices."; const MESSAGE_NOTFOUND = "Image file not found in the vault."; const MESSAGE_RUNNING = "Recoginition is running...";