1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 02:15:46 +01:00

commited pending changes, nothing big

This commit is contained in:
Martin Stubenschrott
2007-05-20 11:05:21 +00:00
parent f2bc81d820
commit c5ddcea49e
4 changed files with 157 additions and 119 deletions

View File

@@ -329,25 +329,25 @@ function History()
return history;
}
this.add = function (uri, title)
this.add = function (url, title)
{
if(!history)
load();
// XXX: check if fast enough
history = history.filter(function(elem) {
return elem[0] != uri;
return elem[0] != url;
});
// for(var i in history)
// {
// if(g_history[i][0] == url)
// if(history[i][0] == url)
// return;
// }
// g_history.unshift([url, title]);
history.unshift([uri, title]);
history.unshift([url, title]);
//history.push([url, title]);
return true;
}
};
logMessage("History initialized");
}