From b3c5ead110d997a655ea58abf56276ab37ce3bf0 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 23 Oct 2022 17:04:05 +0800 Subject: [PATCH] fix redundant port number in url Signed-off-by: MaysWind --- src/helpers/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/url.js b/src/helpers/url.js index 2de4007dfc..1917a51dda 100644 --- a/src/helpers/url.js +++ b/src/helpers/url.js @@ -90,7 +90,7 @@ const getDocumentUrlForFile = (fileDir, fileId) => { } const getNextcloudUrl = () => { - return window.location.host + (window.location.port ? `:${window.location.port}` : '') + return window.location.host } export {