fix(#4003): Remove unhandled promises

Add eslint rules to check for unhandled promises
Fix all existing unhandled promise issues
This commit is contained in:
Sidharth Vinod
2023-01-18 00:47:49 +05:30
parent 549483d19b
commit afe3f593e1
13 changed files with 504 additions and 371 deletions

View File

@@ -13,8 +13,8 @@ const load = async () => {
await mermaid.registerExternalDiagrams([mindmap]);
await render('info');
setTimeout(async () => {
await render(`mindmap
setTimeout(() => {
void render(`mindmap
root((mindmap))
Origins
Long history
@@ -35,4 +35,4 @@ const load = async () => {
}, 2500);
};
window.addEventListener('load', load, false);
window.addEventListener('load', () => void load(), false);