blob: eaa0e9aeeeb927deffab2c77730baa4d6db086df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import React from 'dom-chef';
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';
import {wrap} from '../helpers/dom-utils';
import features from '.';
function init(): void {
if (select('.file-mode')?.textContent === 'symbolic link') {
const line = select('.js-file-line')!;
wrap(line.firstChild!, <a href={line.textContent!}/>);
}
}
void features.add(__filebasename, {
include: [
pageDetect.isSingleFile
],
init
});
|