mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix default sort quirk
Related feedback:
- dd655473f6 (commitcomment-41730014)
This commit is contained in:
parent
e11e318026
commit
fdbde27357
1 changed files with 2 additions and 1 deletions
|
|
@ -260,7 +260,8 @@ const renderRules = (( ) => {
|
|||
|
||||
return function(clearHistory = false) {
|
||||
const select = document.querySelector('#ruleFilter select');
|
||||
sortType = parseInt(select.value, 10) || 1;
|
||||
sortType = parseInt(select.value, 10);
|
||||
if ( isNaN(sortType) ) { sortType = 1; }
|
||||
unfilteredRules.orig.doc.getMode().sortType = sortType;
|
||||
unfilteredRules.edit.doc.getMode().sortType = sortType;
|
||||
sort(unfilteredRules.orig.rules);
|
||||
|
|
|
|||
Loading…
Reference in a new issue