diff --git a/client/src/ajax.js b/client/src/ajax.js index 7633f98313..a6fe119d20 100644 --- a/client/src/ajax.js +++ b/client/src/ajax.js @@ -48,6 +48,18 @@ let onTimeout; * @param {Object.} [options] */ +/** + * Options. + * + * @typedef {Object} Espo.Ajax~Options + * + * @property {Number} [timeout] A timeout. + * @property {Object.} [headers] A request headers. + * @property {'json'|'text'} [dataType] A data type. + * @property {string} [contentType] A content type. + * @property {boolean} [resolveWithXhr] To resolve with `XMLHttpRequest`. + */ + const baseUrl = window.location.origin + window.location.pathname; // noinspection JSUnusedGlobalSymbols @@ -56,18 +68,6 @@ const baseUrl = window.location.origin + window.location.pathname; */ const Ajax = Espo.Ajax = { - /** - * Options. - * - * @typedef {Object} Espo.Ajax~Options - * - * @property {Number} [timeout] A timeout. - * @property {Object.} [headers] A request headers. - * @property {'json'|'text'} [dataType] A data type. - * @property {string} [contentType] A content type. - * @property {boolean} [resolveWithXhr] To resolve with `XMLHttpRequest`. - */ - /** * Request. *