1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +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:
blue 2022-04-04 20:16:48 +01:00
parent b83dcd1595
commit f6163cd947

View File

@ -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 ],