mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
15 lines
299 B
TypeScript
15 lines
299 B
TypeScript
/**
|
|
* StaffHider
|
|
*
|
|
* Hide staff elements if enabled in the settings.
|
|
*/
|
|
|
|
import { $$ } from './utils/dom';
|
|
|
|
export function hideStaffTools() {
|
|
if (window.booru.hideStaffTools === 'true') {
|
|
$$<HTMLElement>('.js-staff-action').forEach(el => {
|
|
el.classList.add('hidden');
|
|
});
|
|
}
|
|
}
|