Skip to content

Commit

Permalink
or-console fix for registration across multiple realms
Browse files Browse the repository at this point in the history
  • Loading branch information
richturner committed Aug 15, 2018
1 parent 75cacb3 commit 23e27b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/main/webapp/src/or-app/or-console.html
Expand Up @@ -108,7 +108,7 @@
registration: {
type: Object,
value: function() {
let consoleStr = window.localStorage.getItem("OpenRemoteConsole");
let consoleStr = window.localStorage.getItem("OpenRemoteConsole:" + this.realm);
return consoleStr ? JSON.parse(consoleStr) : {};
}
},
Expand Down Expand Up @@ -287,7 +287,7 @@
this.registration.id = response.id;
console.debug("Console: registration successful");
console.debug("Console: updating locally stored registration");
window.localStorage.setItem("OpenRemoteConsole", JSON.stringify(this.registration));
window.localStorage.setItem("OpenRemoteConsole:" + this.realm, JSON.stringify(this.registration));
successFn();
if (raiseReadyEvent) {
window.dispatchEvent(new CustomEvent("ConsoleReady"));
Expand Down

0 comments on commit 23e27b9

Please sign in to comment.