TagSpaces is an offline, open source, document manager with tagging support
fix: work around in the param extraction routine
Ilian Sapundshiev5e402d78e720
diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex bbb2809ec..8a4eba77d 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -915,5 +915,7 @@"startDownload": "Start download","createdIn": "Created in","confirmHistoryDeletion": "Do you want to delete the AI-chat history?",+ "doubleClickToOpen": "Double-click to open",+ "tip": "Tip","-": "-"}diff --git a/src/renderer/utils/dom.ts b/src/renderer/utils/dom.tsindex 7d249f577..06d596737 100644--- a/src/renderer/utils/dom.ts+++ b/src/renderer/utils/dom.ts@@ -1,6 +1,4 @@-import { TS } from '-/tagspaces.namespace';import { getRelativeEntryPath } from '-/services/utils-io';-import { CommonLocation } from '-/utils/CommonLocation';export function isVisibleOnScreen(element: any) {const rectangle = element.getBoundingClientRect();@@ -17,7 +15,13 @@ export function isVisibleOnScreen(element: any) {export function getURLParameter(paramName: string, url?: string): string {const intUrl = url || window.location.href;const params = new URL(intUrl).searchParams;- return params.get(paramName);+ let param = params.get(paramName);+ // todo: temporal fix due to issue in the milkdown editor+ if (param?.endsWith('\\')) {+ // removing \ at the end of the param+ param = param.substring(0, param.length - 1);+ }+ return param;}export function clearAllURLParams() {