preserve active sort-prefs if more specific than url-hash

This commit is contained in:
ed committed 2024-12-03 02:13:12 +00:00
1 parent 0f257c9308
commit 4cfdc4c513
1 file changed
+3 -2
+3 -2
View File
@@ -2201,9 +2201,10 @@ if (window.og_fn) {
t = "int";
ret.push([z, n, t]);
}
n = Math.min(ret.length, 2)
var cmp = jread('fsort', []);
if (JSON.stringify(ret.slice(0, 2) !=
JSON.stringify(cmp.slice(0, 2))))
if (JSON.stringify(ret.slice(0, n) !=
JSON.stringify(cmp.slice(0, n))))
jwrite('fsort', ret);
})();