Skip to content

Commit 4a3be07

Browse files
authored
Fix comment describing blacklist check.
Currently the comment doesn't match the code, this change is fixing that.
1 parent 964331f commit 4a3be07

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
@@ -127,7 +127,7 @@ def should_show_prerendered_page(env)
127127
#if it is a bot and not requesting a resource and is not whitelisted...dont prerender
128128
return false if @options[:whitelist].is_a?(Array) && @options[:whitelist].all? { |whitelisted| !Regexp.new(whitelisted).match(request.fullpath) }
129129

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

0 commit comments

Comments
 (0)