mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
Update cypress/platform/viewer.js
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user