site.js: fix console error on non-index pages

This commit is contained in:
mappu 2020-05-04 17:18:29 +12:00
parent b34ae0dcbd
commit 7cc7c7dc93

View File

@ -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
window.addEventListener("load", function() {
sortUpdate(so.value); sortUpdate(so.value);
}); });
}
})(); })();