mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-31 14:16:42 +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.
|
* page.
|
||||||
*/
|
*/
|
||||||
const contentLoaded = async function () {
|
const contentLoaded = async function () {
|
||||||
try {
|
await loadFontAwesomeCSS();
|
||||||
await loadFontAwesomeCSS();
|
await Promise.all(Array.from(document.fonts, (font) => font.load()));
|
||||||
await Promise.all(Array.from(document.fonts, (font) => font.load()));
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error loading fonts', error);
|
|
||||||
}
|
|
||||||
|
|
||||||
let pos = document.location.href.indexOf('?graph=');
|
let pos = document.location.href.indexOf('?graph=');
|
||||||
if (pos > 0) {
|
if (pos > 0) {
|
||||||
|
Reference in New Issue
Block a user