mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Prefixed the key with 'zerobinV'
This commit is contained in:
parent
461fa4992d
commit
4baa3757da
@ -163,7 +163,7 @@ window.zerobin = {
|
|||||||
are prefixed with with the passed version (default being this lib
|
are prefixed with with the passed version (default being this lib
|
||||||
version) */
|
version) */
|
||||||
getLocalStorageKeys: function(version){
|
getLocalStorageKeys: function(version){
|
||||||
version = version || zerobin.version;
|
version = 'zerobinV' + (version || zerobin.version);
|
||||||
var keys = [];
|
var keys = [];
|
||||||
for (var key in localStorage){
|
for (var key in localStorage){
|
||||||
if (key.indexOf(version) !== -1){
|
if (key.indexOf(version) !== -1){
|
||||||
@ -220,7 +220,7 @@ window.zerobin = {
|
|||||||
void localStorage.removeItem(keys[19]);
|
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
|
/** Return a list of the previous paste url with the creation date
|
||||||
|
Loading…
Reference in New Issue
Block a user