Don't manually assemble origin
This commit is contained in:
parent
bd0a95c098
commit
d3f99d349d
@ -21,8 +21,7 @@
|
|||||||
* @const
|
* @const
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
const SERVER = (location.protocol + '//' + location.hostname +
|
const SERVER = location.origin;
|
||||||
(location.port ? ':' + location.port : ''));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path of the root collection on the server (must end with /)
|
* Path of the root collection on the server (must end with /)
|
||||||
|
Loading…
Reference in New Issue
Block a user