diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 6ca460f5..11633bea 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -1,3 +1,4 @@ +// eslint-disable spaced-comment // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // diff --git a/app/assets/javascripts/homepageVimeoFallback.js b/app/assets/javascripts/homepageVimeoFallback.js index be0c44a4..e4f5a67a 100644 --- a/app/assets/javascripts/homepageVimeoFallback.js +++ b/app/assets/javascripts/homepageVimeoFallback.js @@ -1,27 +1,29 @@ +/* global $ */ + $(document).ready(function () { - if (window.location.pathname == "/") { + if (window.location.pathname === '/') { $.ajax({ - type: "GET", - url: '//player.vimeo.com', - error: function(e) { - $('.homeVideo').hide(); + type: 'GET', + url: 'https://player.vimeo.com', + error: function (e) { + $('.homeVideo').hide() $('.homeVideo').replaceWith($('