mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +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 -%}
|
{% else -%}
|
||||||
var endpoint = '{{ endpoint }}';
|
var endpoint = '{{ endpoint }}';
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
{% if authentication.custom_endpoint %}
|
||||||
if ($('#api_endpoint') && typeof($('#api_endpoint').val()) != 'undefined') {
|
if ($('#api_endpoint') && typeof($('#api_endpoint').val()) != 'undefined') {
|
||||||
endpoint = $('#api_endpoint').val();
|
endpoint = $('#api_endpoint').val();
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
// Workaround for Firefox bug and a thereby resulting nginx incompatibility
|
// Workaround for Firefox bug and a thereby resulting nginx incompatibility
|
||||||
if (method == "LINK") {
|
if (method == "LINK") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user