TagSpaces is an offline, open source, document manager with tagging support
fix: issue with saving screenshot from extensions
Ilian Sapundshiev0d438ee8a88e
diff --git a/src/renderer/components/EntryContainer.tsx b/src/renderer/components/EntryContainer.tsxindex 5a3425a0c..be4f09ff3 100644--- a/src/renderer/components/EntryContainer.tsx+++ b/src/renderer/components/EntryContainer.tsx@@ -222,7 +222,10 @@ function EntryContainer() {.then((base64Image) => {const data = base64ToUint8Array(base64Image);- const thumbPath = cLocation.getThumbEntryPath(openedEntry);+ const rawThumbPath = cLocation.getThumbEntryPath(openedEntry);+ const thumbPath = rawThumbPath.startsWith('tsfile://')+ ? rawThumbPath.substring(9)+ : rawThumbPath;saveBinaryFilePromise({ path: thumbPath },data, //new Blob([data]), //data.buffer ? data.buffer :