Added possibility to use https in js and css url with liquid tags
This commit is contained in:
parent
18d3c5c591
commit
a491b15801
@ -8,7 +8,7 @@ module Locomotive
|
||||
def stylesheet_url(input)
|
||||
return '' if input.nil?
|
||||
|
||||
unless input =~ /^(\/|http:)/
|
||||
unless input =~ /^(\/|https?:)/
|
||||
input = asset_url("stylesheets/#{input}")
|
||||
end
|
||||
|
||||
@ -32,7 +32,7 @@ module Locomotive
|
||||
def javascript_url(input)
|
||||
return '' if input.nil?
|
||||
|
||||
unless input =~ /^(\/|http:)/
|
||||
unless input =~ /^(\/|https?:)/
|
||||
input = asset_url("javascripts/#{input}")
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user