Add onSelectedVersion callback so it can be handled in any way the caller wishes
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user