blob: c8491539ff2187997533a5d50343a528e2d99e13 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import select from 'select-dom';
import features from '../libs/features';
function init(): void {
const CIDetailsLinks = select.all('a.status-actions');
for (const link of CIDetailsLinks) {
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener');
}
}
features.add({
id: __featureName__,
description: 'Opens the Checks "details" link in a new tab.',
screenshot: false,
include: [
features.isPR
],
load: features.onAjaxedPages,
init
});
|