From d8f3cc5617a0c3c1f491c59309829ed5d5fc1e6b Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Sat, 21 Apr 2018 19:23:22 -0700
Subject: [PATCH] Different key, do not worry about id

---
 src/storage/store.js | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/storage/store.js b/src/storage/store.js
index 22828ba9e..b648e0bfa 100644
--- a/src/storage/store.js
+++ b/src/storage/store.js
@@ -1,7 +1,7 @@
 import { Validator } from "jsonschema";
 import { merge } from "lodash";
 
-const LOCAL_STORE_KEY = "___mozilla_hubs";
+const LOCAL_STORE_KEY = "___hubs_store";
 const STORE_STATE_CACHE_KEY = Symbol();
 const validator = new Validator();
 import { EventTarget } from "event-target-shim";
@@ -9,7 +9,7 @@ import { EventTarget } from "event-target-shim";
 // Durable (via local-storage) schema-enforced state that is meant to be consumed via forward data flow.
 // (Think flux but with way less incidental complexity, at least for now :))
 export const SCHEMA = {
-  id: "/MozillaHubsStore",
+  id: "/HubsStore",
 
   definitions: {
     profile: {
@@ -68,10 +68,6 @@ export default class Store extends EventTarget {
   }
 
   update(newState) {
-    if (newState.id) {
-      throw new Error("Store id is immutable.");
-    }
-
     const finalState = merge(this.state, newState);
     const isValid = validator.validate(finalState, SCHEMA).valid;
 
-- 
GitLab