diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.ts index 621e4e863..1978002c9 100644 --- a/app/src/protyle/toolbar/util.ts +++ b/app/src/protyle/toolbar/util.ts @@ -237,8 +237,7 @@ export const copyTextByType = async (ids: string[], const response = await fetchSyncPost("/api/filetree/getHPathByID", {id}); text += response.data; } else if (type === "webURL") { - const origin = window.location.origin; - text += `${origin}/?id=${id}`; + text += `${window.location.origin}/?id=${id}`; } else if (type === "id") { text += id; }