Don't scroll to top of page when closing popin
This commit is contained in:
parent
1030a8305c
commit
1b5aea63dc
|
|
@ -767,7 +767,11 @@ var tarteaucitron = {
|
|||
"use strict";
|
||||
|
||||
if (document.location.hash === tarteaucitron.hashtag) {
|
||||
document.location.hash = '';
|
||||
if (window.history) {
|
||||
window.history.replaceState('', document.title, window.location.pathname + window.location.search);
|
||||
} else {
|
||||
document.location.hash = '';
|
||||
}
|
||||
}
|
||||
tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
|
||||
tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'display', 'none');
|
||||
|
|
|
|||
Loading…
Reference in New Issue