Commit 70000b75 authored by Imran Salam's avatar Imran Salam
Browse files

add current protocol to config-url dispatched with activate event

parent 926c47af
......@@ -20,10 +20,11 @@ export const updateBrowserActivated = createAction(
export const activateBrowser = (browserEl: HTMLDivElement) => {
return (dispatch: Dispatch) => {
const { protocol } = window.location;
const activateEvent = new CustomEvent('bpane-activate', {
bubbles: true,
detail: {
'config-url': `${config.apiHost}/browser/config`,
'config-url': `${protocol}${config.apiHost}/browser/config`,
key: 'main'
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment