Protocol-relative URL breaks origin checks, use location.protocol.
[webcart1000.git] / o_o.js
diff --git a/o_o.js b/o_o.js
index 061cbb3..4ec46f9 100644 (file)
--- a/o_o.js
+++ b/o_o.js
@@ -1,3 +1,12 @@
+/* The person who associated a work with this deed has dedicated the
+   work to the public domain by waiving all of his or her rights to
+   the work worldwide under copyright law, including all related and
+   neighboring rights, to the extent allowed by law.
+
+   You can copy, modify, distribute and perform the work, even for
+   commercial purposes, all without asking permission.
+*/
+
 (function () {
     "use strict";
 
@@ -23,7 +32,7 @@
     function generateMessage () {
         var r = {};
         for (var k in KEYS)
-            r[k] = KEYS[k](localStorage[k]);
+            r[k] = KEYS[k](localStorage["WEBCART1000 " + k]);
         return r;
     }
 
@@ -32,7 +41,7 @@
             return;
         for (var k in KEYS) {
             if (k in data) {
-                localStorage[k] = KEYS[k](data[k]);
+                localStorage["WEBCART1000 " + k] = KEYS[k](data[k]);
             }
         }
     }