Fixed endpoint is undefined in sandbox when custom_endpoint is disabled

This commit is contained in:
Yosh de Vos 2014-08-08 09:51:05 +02:00 committed by Yosh de Vos
parent 38f0bec705
commit d53028098f

View File

@ -396,9 +396,11 @@
{% else -%}
var endpoint = '{{ endpoint }}';
{% endif -%}
{% if authentication.custom_endpoint %}
if ($('#api_endpoint') && typeof($('#api_endpoint').val()) != 'undefined') {
endpoint = $('#api_endpoint').val();
}
{% endif %}
// Workaround for Firefox bug and a thereby resulting nginx incompatibility
if (method == "LINK") {