diff options
Diffstat (limited to 'src/client/rz_api_backend.js')
| -rw-r--r-- | src/client/rz_api_backend.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/rz_api_backend.js b/src/client/rz_api_backend.js index 416e9708..9401e6f1 100644 --- a/src/client/rz_api_backend.js +++ b/src/client/rz_api_backend.js @@ -7,10 +7,7 @@ define(['util', 'model/core'], function(util, model_core) { function RZ_API_Backend() { - var rz_server_url = 'http://%h:%p'; - rz_server_url = rz_server_url.replace('%h', rz_config.rz_server_host); - rz_server_url = rz_server_url.replace('%p', rz_config.rz_server_port); - + var rz_server_url = document.location.origin; var common_req_ctx = function() { var common_ctx = { rzdoc_name: rz_config.rzdoc_cur__name }; // FIXME: call rz_core.rzdoc_get_current + avoid requirejs circular dep |
