Skip to content

Commit 0e0840a

Browse files
committed
Refactor: reorganize
1 parent 035a278 commit 0e0840a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dom.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export interface SendFormData {
105105

106106
export class Dom {
107107
private static readonly errorText: Text = document.querySelector('h2.error')!.appendChild(document.createTextNode(''));
108-
109108
static reportError(error?: any): void {
110109
console.error(error);
111110
const errorMessage = `Error: ${error}`;
@@ -117,8 +116,8 @@ export class Dom {
117116

118117
static readonly serialForm = new DomForm<ConnectionFormData>(document.querySelector('form[name=serial]')!);
119118
static readonly sendForm = new DomForm<SendFormData>(document.querySelector('form[name=send]')!);
120-
private static readonly functionCodeList = document.getElementById('functionCodeList')!;
121119

120+
private static readonly functionCodeList = document.getElementById('functionCodeList')!;
122121
static addFunctionCodeListOption(code: string, description: string): void {
123122
const option = document.createElement('option');
124123
option.value = code;

0 commit comments

Comments
 (0)