Skip to content

Commit 51899a2

Browse files
authored
Merge pull request #34 from pimlock/patch-1
Fix comment describing blacklist check.
2 parents 89d48f8 + 4a3be07 commit 51899a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/prerender_rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def should_show_prerendered_page(env)
128128
#if it is a bot and not requesting a resource and is not whitelisted...dont prerender
129129
return false if @options[:whitelist].is_a?(Array) && @options[:whitelist].all? { |whitelisted| !Regexp.new(whitelisted).match(request.fullpath) }
130130

131-
#if it is a bot and not requesting a resource and is not blacklisted(url or referer)...dont prerender
131+
#if it is a bot and not requesting a resource and is blacklisted(url or referer)...dont prerender
132132
if @options[:blacklist].is_a?(Array) && @options[:blacklist].any? { |blacklisted|
133133
blacklistedUrl = false
134134
blacklistedReferer = false

0 commit comments

Comments
 (0)