Don't manually assemble origin

This commit is contained in:
Unrud 2022-01-07 23:23:53 +01:00
parent bd0a95c098
commit d3f99d349d

View File

@ -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 /)