mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Don't manually assemble origin
This commit is contained in:
parent
bd0a95c098
commit
d3f99d349d
1 changed files with 1 additions and 2 deletions
|
@ -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 /)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue