diff --git a/js/app.js b/js/app.js index 2483fea9..7b2b485e 100644 --- a/js/app.js +++ b/js/app.js @@ -15,10 +15,6 @@ let headers = { 'Content-Type': 'application/json' }; -//if (window.DEBUG) { -// headers.Authorization = 'Basic ' + window.CREDENTIALS; -//} - fetch.defaults({ urlMap: ApiUrls, http: { diff --git a/js/constants/application_constants.js b/js/constants/application_constants.js index da7c8482..498a26f0 100644 --- a/js/constants/application_constants.js +++ b/js/constants/application_constants.js @@ -5,10 +5,10 @@ let constants = { //FIXME: referring to a global variable in `window` is not // super pro. What if we render stuff on the server? - 'baseUrl': window.BASE_URL, + //'baseUrl': window.BASE_URL, 'apiEndpoint': window.API_ENDPOINT, - //'baseUrl': 'http://staging.ascribe.io/api/', - //'debugCredentialBase64': 'ZGltaUBtYWlsaW5hdG9yLmNvbTowMDAwMDAwMDAw', // dimi@mailinator:0000000000 + 'baseUrl': window.BASE_URL, + 'debugCredentialBase64': 'ZGltaUBtYWlsaW5hdG9yLmNvbTowMDAwMDAwMDAw', // dimi@mailinator:0000000000 'aclList': ['edit', 'consign', 'consign_request', 'unconsign', 'unconsign_request', 'transfer', 'loan', 'loan_request', 'share', 'download', 'view', 'delete', 'del_from_collection', 'add_to_collection'] };