File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,12 @@ function main(): void {
145
145
"version" ,
146
146
) as HTMLAnchorElement ;
147
147
148
+ // determines whether the dictionary can be automatically parsed
149
+ function autoParse ( ) : boolean {
150
+ return customDictionaryTextBox . value . length <=
151
+ DICTIONARY_AUTO_PARSE_THRESHOLD ;
152
+ }
153
+
148
154
// emulates `window.alert`
149
155
function showMessage ( useMessage : string ) : void {
150
156
message . innerText = useMessage ;
@@ -334,10 +340,6 @@ function main(): void {
334
340
}
335
341
tryCloseDictionary ( ) ;
336
342
} ) ;
337
- function autoParse ( ) : boolean {
338
- return customDictionaryTextBox . value . length <=
339
- DICTIONARY_AUTO_PARSE_THRESHOLD ;
340
- }
341
343
function updateDictionary ( ) : void {
342
344
currentDictionary = dictionaryParser . parse ( customDictionaryTextBox . value ) ;
343
345
showDictionaryError ( ) ;
You can’t perform that action at this time.
0 commit comments