From 60e4585e208a0a2f67cdb41d1c2182b5d96167bb Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 10 Oct 2022 22:04:05 +0800 Subject: [PATCH] Revert "fix: use async in render-after-error" This reverts commit d59f8780208e82e0f7b55f751ef6d148a4cdfe44. --- cypress/platform/render-after-error.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/cypress/platform/render-after-error.html b/cypress/platform/render-after-error.html index 96dcd3f8b..f5165e0ee 100644 --- a/cypress/platform/render-after-error.html +++ b/cypress/platform/render-after-error.html @@ -14,16 +14,14 @@ mermaid.init({ startOnLoad: false }); mermaid.mermaidAPI.initialize({ securityLevel: 'strict' }); - (async () => { - try { - console.log('rendering'); - await mermaid.mermaidAPI.renderAsync('graphDiv', `>`); - } catch (e) {} + try { + console.log('rendering'); + mermaid.mermaidAPI.render('graphDiv', `>`); + } catch (e) {} - await mermaid.mermaidAPI.renderAsync('graphDiv', `graph LR\n a --> b`, (html) => { - document.getElementById('graph').innerHTML = html; - }); - })(); + mermaid.mermaidAPI.render('graphDiv', `graph LR\n a --> b`, (html) => { + document.getElementById('graph').innerHTML = html; + });