Skip to content

Commit c909dd0

Browse files
committed
use default custom dictionary message as default unsaved dictionary
1 parent 5a6e546 commit c909dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function main() {
177177

178178
// states for storing previous dictionary states for discarding dictionary edits
179179
let lastSavedText = checkLocalStorage()
180-
? localStorage.getItem(DICTIONARY_KEY) ?? ""
180+
? localStorage.getItem(DICTIONARY_KEY) ?? DEFAULT_CUSTOM_DICTIONARY_MESSAGE
181181
: customDictionaryTextBox.value;
182182
let lastSavedDictionary = dictionaryParser.parse(lastSavedText);
183183

0 commit comments

Comments
 (0)