Skip to content

Commit

Permalink
add xhr_script only when add_footer is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Dec 15, 2020
1 parent c29ed32 commit 7220615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bullet/rack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def call(env)
response_body = response_body(response)
response_body = append_to_html_body(response_body, footer_note) if Bullet.add_footer
response_body = append_to_html_body(response_body, Bullet.gather_inline_notifications)
response_body = append_to_html_body(response_body, xhr_script)
response_body = append_to_html_body(response_body, xhr_script) if Bullet.add_footer
headers['Content-Length'] = response_body.bytesize.to_s
else
set_header(headers, 'X-bullet-footer-text', Bullet.footer_info.uniq) if Bullet.add_footer
Expand Down

0 comments on commit 7220615

Please sign in to comment.