TagSpaces is an offline, open source, document manager with tagging support
fix display background in cordova
sytolkbcbaf7410463
diff --git a/src/renderer/services/utils-io.ts b/src/renderer/services/utils-io.tsindex 4d90379ef..8e4697a49 100644--- a/src/renderer/services/utils-io.ts+++ b/src/renderer/services/utils-io.ts@@ -1364,12 +1364,16 @@ export function fileNameValidation(fileName): boolean {* normalize path for URL is always '/'*/export function normalizeUrl(url: string) {+ let normalizedUrl = url;if (PlatformIO.getDirSeparator() !== '/') {if (url) {- return url.replaceAll(PlatformIO.getDirSeparator(), '/');+ normalizedUrl = url.replaceAll(PlatformIO.getDirSeparator(), '/');}}- return url;+ if (!normalizedUrl.startsWith('http') && !normalizedUrl.startsWith('/')) {+ normalizedUrl = '/' + normalizedUrl;+ }+ return normalizedUrl;}/**