From f6163cd9479e89cf651febaa8e7a35ac8002b48b Mon Sep 17 00:00:00 2001 From: blue Date: Mon, 4 Apr 2022 20:16:48 +0100 Subject: [PATCH] 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' --- src/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 4d29fc85d..8fd3eb0c5 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -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 ],