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