Skip to content

Commit

Permalink
fix: iframe video and icons in firefox (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpasquet committed May 3, 2024
1 parent 6f1d697 commit bd5a11c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"node": ">= 20.0"
},
"dependencies": {
"@eleven-labs/design-system": "^0.37.1",
"@eleven-labs/design-system": "^0.37.2",
"@remix-run/router": "^1.7.2",
"algoliasearch": "^4.19.1",
"classnames": "^2.3.2",
Expand Down
6 changes: 1 addition & 5 deletions src/entry-client.tsx
Expand Up @@ -49,19 +49,15 @@ const loadMermaidScript = (): void => {
document.body.appendChild(script);
};

document.addEventListener('DOMContentLoaded', (event) => {
console.log(event);

document.addEventListener('DOMContentLoaded', () => {
const twitterTweetElements = document.getElementsByClassName('twitter-tweet');
const mermaidElements = document.getElementsByClassName('mermaid');

if (twitterTweetElements.length) {
console.log('twitterTweetElements', twitterTweetElements);
loadTwitterScript();
}

if (mermaidElements.length) {
console.log('mermaid', mermaidElements);
loadMermaidScript();
}
});

0 comments on commit bd5a11c

Please sign in to comment.