site.js: fix console error on non-index pages
This commit is contained in:
parent
b34ae0dcbd
commit
7cc7c7dc93
@ -82,10 +82,11 @@
|
|||||||
if (so) {
|
if (so) {
|
||||||
so.addEventListener('change', function() { sortUpdate(so.value); });
|
so.addEventListener('change', function() { sortUpdate(so.value); });
|
||||||
sortUpdate(so.value);
|
sortUpdate(so.value);
|
||||||
}
|
|
||||||
window.addEventListener("load", function() {
|
|
||||||
// back button support in webkit
|
// back button support in webkit
|
||||||
sortUpdate(so.value);
|
window.addEventListener("load", function() {
|
||||||
});
|
sortUpdate(so.value);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user