mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Synced with origin
This commit is contained in:
parent
9b3bb2de2b
commit
cf81d1f9a7
94 changed files with 5096 additions and 3560 deletions
|
@ -21,15 +21,14 @@
|
|||
* @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 /)
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
const ROOT_PATH = location.pathname.replace(new RegExp("/+[^/]+/*(/index\\.html?)?$"), "") + '/';
|
||||
const ROOT_PATH = (new URL("..", location.href)).pathname;
|
||||
|
||||
/**
|
||||
* Regex to match and normalize color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue