mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 10:14:29 -07:00
Docs: Prevent JS error if Vimeo does not load. Resolves #2635.
This commit is contained in:
committed by
Jeremy Thomas
parent
d6bda003b9
commit
62be5ba8bc
@@ -6,7 +6,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const introIframe = document.getElementById('introIframe');
|
||||
const npmClipboard = new Clipboard('#npmCopy');
|
||||
|
||||
if (Vimeo) {
|
||||
if (window.Vimeo) {
|
||||
const introPlayer = new Vimeo.Player(introIframe);
|
||||
introPlayer.ready().then(function() {
|
||||
introVideo.classList.add('has-loaded');
|
||||
|
||||
Reference in New Issue
Block a user