mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-12 18:04:16 +01:00
Accept truth-y values for DisableDashboard
Make configuring via Windows registry easier. Specifically after 1 = true and 0 = false as booleans are usually stored as dwords, so could alternatively cast to boolean if typeof disableDashboard === 'number'
This commit is contained in:
parent
b83dcd1595
commit
f6163cd947
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ import {
|
|||
hsDefault[name] = hsAdmin[name] = hsUser[name] = value;
|
||||
}
|
||||
}
|
||||
µb.noDashboard = disableDashboard === true;
|
||||
µb.noDashboard = disableDashboard == true;
|
||||
if ( Array.isArray(disabledPopupPanelParts) ) {
|
||||
const partNameToBit = new Map([
|
||||
[ 'globalStats', 0b00010 ],
|
||||
|
|
Loading…
Reference in a new issue