diff --git a/radicale/web/internal_data/fn.js b/radicale/web/internal_data/fn.js index ef47d08..a61fd32 100644 --- a/radicale/web/internal_data/fn.js +++ b/radicale/web/internal_data/fn.js @@ -21,8 +21,7 @@ * @const * @type {string} */ -const SERVER = (location.protocol + '//' + location.hostname + - (location.port ? ':' + location.port : '')); +const SERVER = location.origin; /** * Path of the root collection on the server (must end with /)