mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f8812049f6
commit
41ac21f088
@ -1621,11 +1621,11 @@ function setupBaseURLHistory(){
|
|||||||
.on('baseURLChanged', function(evt, old_url, new_url){
|
.on('baseURLChanged', function(evt, old_url, new_url){
|
||||||
if(BASE_URL_HISTORY.indexOf(old_url) < 0){
|
if(BASE_URL_HISTORY.indexOf(old_url) < 0){
|
||||||
BASE_URL_HISTORY.splice(0, 0, old_url)
|
BASE_URL_HISTORY.splice(0, 0, old_url)
|
||||||
}
|
|
||||||
|
|
||||||
// truncate the history if needed...
|
// truncate the history if needed...
|
||||||
if(BASE_URL_HISTORY.length > BASE_URL_LIMIT){
|
if(BASE_URL_HISTORY.length > BASE_URL_LIMIT){
|
||||||
BASE_URL_HISTORY.splice(BASE_URL_LIMIT, BASE_URL_HISTORY.length)
|
BASE_URL_HISTORY.splice(BASE_URL_LIMIT, BASE_URL_HISTORY.length)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user