mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
18 lines
296 B
JavaScript
18 lines
296 B
JavaScript
|
/**
|
||
|
* StaffHider
|
||
|
*
|
||
|
* Hide staff elements if enabled in the settings.
|
||
|
*/
|
||
|
|
||
|
import { $$ } from './utils/dom';
|
||
|
|
||
|
function hideStaffTools() {
|
||
|
if (window.booru.hideStaffTools) {
|
||
|
$$('.js-staff-action').forEach(el => {
|
||
|
el.classList.add('hidden');
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export { hideStaffTools };
|