1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Make local storage format version decouple from 0bin version

This commit is contained in:
sam 2012-05-22 14:47:24 +02:00
parent 6860778f47
commit 470194806e

View File

@ -162,8 +162,8 @@ window.zerobin = {
/** Return a reverse sorted list of all the keys in local storage that /** Return a reverse sorted list of all the keys in local storage that
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 = 'zerobinV' + (version || zerobin.version); version = 'zerobinV0.1';
var keys = []; var keys = [];
for (var key in localStorage){ for (var key in localStorage){
if (key.indexOf(version) !== -1){ if (key.indexOf(version) !== -1){