Permalink
Browse files

Use protocol-independent urls for Yandex and Microsoft CDNs

  • Loading branch information...
1 parent 4547a40 commit 9c21f06f5320e79c84be25853ff3e0aba78f0393 @atipugin atipugin committed Oct 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jquery-rails-cdn.rb
View
@@ -7,9 +7,9 @@ module ActionViewExtensions
OFFLINE = (Rails.env.development? or Rails.env.test?)
URL = {
:google => "//ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
- :microsoft => "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-#{JQUERY_VERSION}.min.js",
+ :microsoft => "//ajax.aspnetcdn.com/ajax/jQuery/jquery-#{JQUERY_VERSION}.min.js",
:jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js",
- :yandex => "http://yandex.st/jquery/#{JQUERY_VERSION}/jquery.min.js"
+ :yandex => "//yandex.st/jquery/#{JQUERY_VERSION}/jquery.min.js"
}
def jquery_url(name, options = {})

0 comments on commit 9c21f06

Please sign in to comment.