Skip to content
Snippets Groups Projects
Commit dba7c723 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files
parent 2126fd02
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,8 @@ export default class JSONLD { ...@@ -61,7 +61,8 @@ export default class JSONLD {
xhr.setRequestHeader('Authorization', 'Bearer ' + window.VPUAuthToken); xhr.setRequestHeader('Authorization', 'Bearer ' + window.VPUAuthToken);
xhr.onreadystatechange = function () { xhr.onreadystatechange = function () {
if (xhr.readyState === 4 && xhr.status === 200) { if (xhr.readyState === 4) {
if (xhr.status === 200) {
const json = JSON.parse(xhr.responseText); const json = JSON.parse(xhr.responseText);
let entryPoints = {}; let entryPoints = {};
...@@ -119,6 +120,7 @@ export default class JSONLD { ...@@ -119,6 +120,7 @@ export default class JSONLD {
} else { } else {
JSONLD.executeFailureFunctions(apiUrl, i18n.t('jsonld.error-api-server', {apiUrl: apiUrl})); JSONLD.executeFailureFunctions(apiUrl, i18n.t('jsonld.error-api-server', {apiUrl: apiUrl}));
} }
}
}; };
xhr.send(); xhr.send();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment