Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eperez config jsconfig #18

Merged
merged 2 commits into from Oct 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions react/build/dashboard-bundle.dev.js
Expand Up @@ -65,7 +65,7 @@
/******/ }
/******/
/******/ var hotApplyOnUpdate = true;
/******/ var hotCurrentHash = "dd4e2e63dce400935265"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentHash = "9bad06d8c072e4196adf"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
/******/
Expand Down Expand Up @@ -30677,7 +30677,10 @@
return function (dispatch) {
dispatch(getConfig());

return __webpack_provided_window_dot_fetch('/services/jsconfig/config', {
var input = document.getElementById('jsconfig_url'),
jsconfig_url = input ? input.value : '/services/jsconfig/config';

return __webpack_provided_window_dot_fetch(jsconfig_url, {
// To automatically send cookies for the current domain,
// set credentials to 'same-origin'; use 'include' for CORS
credentials: 'include',
Expand Down
2 changes: 1 addition & 1 deletion react/build/dashboard-bundle.dev.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions react/build/openid_connect-bundle.dev.js
Expand Up @@ -65,7 +65,7 @@
/******/ }
/******/
/******/ var hotApplyOnUpdate = true;
/******/ var hotCurrentHash = "dd4e2e63dce400935265"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentHash = "9bad06d8c072e4196adf"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
/******/
Expand Down Expand Up @@ -30680,7 +30680,10 @@
return function (dispatch) {
dispatch(getConfig());

return __webpack_provided_window_dot_fetch('/services/jsconfig/config', {
var input = document.getElementById('jsconfig_url'),
jsconfig_url = input ? input.value : '/services/jsconfig/config';

return __webpack_provided_window_dot_fetch(jsconfig_url, {
// To automatically send cookies for the current domain,
// set credentials to 'same-origin'; use 'include' for CORS
credentials: 'include',
Expand Down
2 changes: 1 addition & 1 deletion react/build/openid_connect-bundle.dev.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions react/build/personal_data-bundle.dev.js
Expand Up @@ -65,7 +65,7 @@
/******/ }
/******/
/******/ var hotApplyOnUpdate = true;
/******/ var hotCurrentHash = "dd4e2e63dce400935265"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentHash = "9bad06d8c072e4196adf"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
/******/
Expand Down Expand Up @@ -30579,7 +30579,10 @@
return function (dispatch) {
dispatch(getConfig());

return __webpack_provided_window_dot_fetch('/services/jsconfig/config', {
var input = document.getElementById('jsconfig_url'),
jsconfig_url = input ? input.value : '/services/jsconfig/config';

return __webpack_provided_window_dot_fetch(jsconfig_url, {
// To automatically send cookies for the current domain,
// set credentials to 'same-origin'; use 'include' for CORS
credentials: 'include',
Expand Down
2 changes: 1 addition & 1 deletion react/build/personal_data-bundle.dev.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion react/src/actions/Config.js
Expand Up @@ -31,8 +31,11 @@ export function getConfigFail (err) {
export function fetchConfig () {
return dispatch => {
dispatch(getConfig());

const input = document.getElementById('jsconfig_url'),
jsconfig_url = input ? input.value : '/services/jsconfig/config';

return window.fetch('/services/jsconfig/config', {
return window.fetch(jsconfig_url, {
// To automatically send cookies for the current domain,
// set credentials to 'same-origin'; use 'include' for CORS
credentials: 'include',
Expand Down