Add onSelectedVersion callback so it can be handled in any way the caller wishes

This commit is contained in:
Fabio Berger
2018-03-07 13:25:15 +01:00
parent 327cc307b3
commit 6f8a70834b
9 changed files with 35 additions and 17 deletions

View File

@@ -270,4 +270,10 @@ export const utils = {
window.onload = () => resolve();
});
},
getCurrentBaseUrl() {
const port = window.location.port;
const hasPort = !_.isUndefined(port);
const baseUrl = `https://${window.location.hostname}${hasPort ? `:${port}` : ''}`;
return baseUrl;
},
};