master #18
|
@ -637,7 +637,13 @@ class CCPExecutionHistory extends HTMLElement {
|
|||
|
||||
async initWorkspace(){
|
||||
if(!this.#ws){
|
||||
const wsurl = "https://workspace-repository.dev.d4science.org/storagehub/workspace"
|
||||
const iss = document.querySelector("d4s-boot-2").loginToken.iss;
|
||||
const addresses = {
|
||||
"https://accounts.dev.d4science.org/auth/realms/d4science": "https://workspace-repository.dev.d4science.org/storagehub/workspace",
|
||||
"https://accounts.pre.d4science.org/auth/realms/d4science": "https://pre.d4science.org/workspace",
|
||||
"https://accounts.d4science.org/auth/realms/d4science": "https://api.d4science.org/workspace"
|
||||
};
|
||||
const wsurl = addresses[iss]
|
||||
this.#ws = new D4SWorkspace(wsurl, this.#boot)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue