Skip to content

Commit 035a278

Browse files
committed
Refactor: reorganize
1 parent 7a1f419 commit 035a278

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dom.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,14 @@ export class Dom {
118118
static readonly serialForm = new DomForm<ConnectionFormData>(document.querySelector('form[name=serial]')!);
119119
static readonly sendForm = new DomForm<SendFormData>(document.querySelector('form[name=send]')!);
120120
private static readonly functionCodeList = document.getElementById('functionCodeList')!;
121-
static readonly downloadSnifferButton = document.getElementById('downloadSnifferButton')!;
122-
static readonly clearSnifferButton = document.getElementById('clearSnifferButton')!;
123121

124122
static addFunctionCodeListOption(code: string, description: string): void {
125123
const option = document.createElement('option');
126124
option.value = code;
127125
option.appendChild(document.createTextNode(`${Converters.byteToHex(+code)} ${description}`));
128126
Dom.functionCodeList.appendChild(option);
129127
}
128+
129+
static readonly downloadSnifferButton = document.getElementById('downloadSnifferButton')!;
130+
static readonly clearSnifferButton = document.getElementById('clearSnifferButton')!;
130131
}

0 commit comments

Comments
 (0)