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