1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

Fix default sort quirk

Related feedback:
- dd655473f6 (commitcomment-41730014)
This commit is contained in:
Raymond Hill 2020-08-24 14:46:25 -04:00
parent e11e318026
commit fdbde27357
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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);