blob: e70ccbc4c37ae2914c0a30a7f1e14c11bb4fa486 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';
import features from '.';
function init(): void {
// Hide if it’s not editable by the current user
if (select.exists('.repository-content > :first-child:not(#repo-meta-edit) em')) {
select('.repository-content')!.firstElementChild!.remove();
}
}
void features.add(__filebasename, {
include: [
pageDetect.isRepoRoot
],
init
});
|