From 06877dcc472ba7c1572037a2fd70321a79da30a6 Mon Sep 17 00:00:00 2001 From: Saurabh Gore <167211619+saurabhg772244@users.noreply.github.com> Date: Wed, 26 Feb 2025 18:48:27 +0530 Subject: [PATCH] Update cypress/platform/viewer.js Co-authored-by: Alois Klink --- cypress/platform/viewer.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cypress/platform/viewer.js b/cypress/platform/viewer.js index 28add11ca..1bf2c050b 100644 --- a/cypress/platform/viewer.js +++ b/cypress/platform/viewer.js @@ -33,12 +33,8 @@ function loadFontAwesomeCSS() { * page. */ const contentLoaded = async function () { - try { - await loadFontAwesomeCSS(); - await Promise.all(Array.from(document.fonts, (font) => font.load())); - } catch (error) { - console.error('Error loading fonts', error); - } + await loadFontAwesomeCSS(); + await Promise.all(Array.from(document.fonts, (font) => font.load())); let pos = document.location.href.indexOf('?graph='); if (pos > 0) {