I also made the change of disabling the button toggle feature so that the click away works
isOpen = true;
// open and close properties for sidebar based on isOpen
backgroundDim.create()
var sidebar = document.querySelector('.sidebar');
sidebar.style.width = isOpen?"200px":"0px";
sidebar.style.paddingLeft = isOpen?"10px":"0px";
sidebar.style.paddingRight = isOpen?"10px":"0px";
sidebar.style.top = `calc(${submenuHeight}px + ${GameEnv.top}px)`;
Adding the Dim
SettingsControl.js
as opposed the method I had to create under the leaderboard objectindex.md