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) {
so.addEventListener('change', function() { sortUpdate(so.value); });
sortUpdate(so.value);
}
window.addEventListener("load", function() {
// back button support in webkit
sortUpdate(so.value);
});
window.addEventListener("load", function() {
sortUpdate(so.value);
});
}
})();