Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

or-console fix for registration across multiple realms

Rich Turner23e27b9e8cad
diff --git a/client/src/main/webapp/src/or-app/or-console.html b/client/src/main/webapp/src/or-app/or-console.html
index 8abd32388..ce333f691 100644
--- a/client/src/main/webapp/src/or-app/or-console.html
+++ b/client/src/main/webapp/src/or-app/or-console.html
@@ -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) : {};
}
},
@@ -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"));