mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02: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
@ -208,7 +208,7 @@ import {
|
|||||||
hsDefault[name] = hsAdmin[name] = hsUser[name] = value;
|
hsDefault[name] = hsAdmin[name] = hsUser[name] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
µb.noDashboard = disableDashboard === true;
|
µb.noDashboard = disableDashboard == true;
|
||||||
if ( Array.isArray(disabledPopupPanelParts) ) {
|
if ( Array.isArray(disabledPopupPanelParts) ) {
|
||||||
const partNameToBit = new Map([
|
const partNameToBit = new Map([
|
||||||
[ 'globalStats', 0b00010 ],
|
[ 'globalStats', 0b00010 ],
|
||||||
|
Loading…
Reference in New Issue
Block a user