From 4baa3757da7a9ca50a529766587cb7fe968ac334 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 16 May 2012 18:53:24 +0200 Subject: [PATCH] Prefixed the key with 'zerobinV' --- zerobin/static/js/behavior.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerobin/static/js/behavior.js b/zerobin/static/js/behavior.js index 969f93e..7be53e8 100644 --- a/zerobin/static/js/behavior.js +++ b/zerobin/static/js/behavior.js @@ -163,7 +163,7 @@ window.zerobin = { are prefixed with with the passed version (default being this lib version) */ getLocalStorageKeys: function(version){ - version = version || zerobin.version; + version = 'zerobinV' + (version || zerobin.version); var keys = []; for (var key in localStorage){ if (key.indexOf(version) !== -1){ @@ -220,7 +220,7 @@ window.zerobin = { void localStorage.removeItem(keys[19]); } - localStorage.setItem(zerobin.version + "#" + date, url); + localStorage.setItem('zerobinV' + zerobin.version + "#" + date, url); }, /** Return a list of the previous paste url with the creation date