blob: dded5758baed426a9b794f0acda8c329fae7b278 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import select from 'select-dom';
import features from '../libs/features';
function init(): void {
select('.subnav-search')!.setAttribute('autocomplete', 'off');
}
features.add({
id: __featureName__,
description: 'Removes the autocomplete on search fields.',
screenshot: 'https://user-images.githubusercontent.com/1402241/42991841-1f057e4e-8c07-11e8-909c-b051db7a2a03.png',
include: [
features.isDiscussionList
],
load: features.onAjaxedPages,
init
});
|