mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
preserve active sort-prefs if more specific than url-hash
This commit is contained in:
parent
0f257c9308
commit
4cfdc4c513
|
@ -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);
|
||||
})();
|
||||
|
||||
|
|
Loading…
Reference in a new issue