Skip to content

Commit 4baa375

Browse files
committed
Prefixed the key with 'zerobinV'
1 parent 461fa49 commit 4baa375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zerobin/static/js/behavior.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ window.zerobin = {
163163
are prefixed with with the passed version (default being this lib
164164
version) */
165165
getLocalStorageKeys: function(version){
166-
version = version || zerobin.version;
166+
version = 'zerobinV' + (version || zerobin.version);
167167
var keys = [];
168168
for (var key in localStorage){
169169
if (key.indexOf(version) !== -1){
@@ -220,7 +220,7 @@ window.zerobin = {
220220
void localStorage.removeItem(keys[19]);
221221
}
222222

223-
localStorage.setItem(zerobin.version + "#" + date, url);
223+
localStorage.setItem('zerobinV' + zerobin.version + "#" + date, url);
224224
},
225225

226226
/** Return a list of the previous paste url with the creation date

0 commit comments

Comments
 (0)