mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Fixed endpoint is undefined in sandbox when custom_endpoint is disabled
This commit is contained in:
parent
38f0bec705
commit
d53028098f
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user