fix hide toolbar only appearing for presenter

This commit is contained in:
Ramón Souza 2024-02-08 09:29:10 -03:00
parent c6f82eed1e
commit 0487eec4ca

View File

@ -358,8 +358,6 @@ const PresentationMenu = (props) => {
); );
} }
const tools = document.querySelector('.tlui-toolbar, .tlui-style-panel__wrapper, .tlui-menu-zone');
if (tools && (props.hasWBAccess || props.amIPresenter)){
menuItems.push( menuItems.push(
{ {
key: 'list-item-toolvisibility', key: 'list-item-toolvisibility',
@ -371,7 +369,6 @@ const PresentationMenu = (props) => {
}, },
}, },
); );
}
if (props.amIPresenter) { if (props.amIPresenter) {
menuItems.push({ menuItems.push({