Skip to content

Commit 4b01610

Browse files
committed
fix(spell-check): simplify dictionary reload handling in index.html
1 parent 1c914b0 commit 4b01610

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/spell-check/dictionary.renderer/index.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
<body>
2323
<script>
2424
require('./dictionary.worker');
25-
(async () => {
26-
try {
27-
await reloadDictionaries();
28-
} catch (error) {
29-
console.error(error);
30-
}
31-
})();
25+
reloadDictionaries().catch(console.error); // NOSONAR
3226
</script>
3327
</body>
3428
</html>

0 commit comments

Comments
 (0)