mirror of
https://github.com/jgthms/bulma.git
synced 2025-01-09 15:44:25 +00:00
Docs: Prevent JS error if Vimeo does not load. Resolves #2635.
This commit is contained in:
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');
|
||||
|
@ -8,7 +8,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
var introIframe = document.getElementById('introIframe');
|
||||
var npmClipboard = new Clipboard('#npmCopy');
|
||||
|
||||
if (Vimeo) {
|
||||
if (window.Vimeo) {
|
||||
var introPlayer = new Vimeo.Player(introIframe);
|
||||
introPlayer.ready().then(function () {
|
||||
introVideo.classList.add('has-loaded');
|
||||
|
Loading…
Reference in New Issue
Block a user