blob: 6bdfd5034dc26bfd8329d827c87e6553d3046dfd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import './hide-navigation-hover-highlight.css';
import onetime from 'onetime';
import features from '.';
const className = 'rgh-no-navigation-highlight';
function init(): void {
document.body.classList.add(className);
document.body.addEventListener('navigation:keydown', () => {
document.body.classList.remove(className);
}, {once: true});
}
void features.add(__filebasename, {
awaitDomReady: false,
init: onetime(init)
});
|