philomena/assets/js/staffhider.js
2019-12-20 17:35:46 -05:00

17 lines
306 B
JavaScript

/**
* StaffHider
*
* Hide staff elements if enabled in the settings.
*/
import { $$ } from './utils/dom';
function hideStaffTools() {
if (window.booru.hideStaffTools == "true") {
$$('.js-staff-action').forEach(el => {
el.classList.add('hidden');
});
}
}
export { hideStaffTools };