Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug in defining the Airbrake javascript object

  • Loading branch information...
commit 3112681d6bb3a2c367d25c2d794fa7bfced54010 1 parent a9c3eb6
Harold Giménez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/templates/javascript_notifier.erb
2  lib/templates/javascript_notifier.erb
View
@@ -6,7 +6,7 @@
}%>
<%= javascript_tag %Q{
- window.Airbrake = Airbrake || Hoptoad;
+ window.Airbrake = (typeof(Airbrake) == 'undefined' && typeof(Hoptoad) != 'undefined') ? Hoptoad : Airbrake
Airbrake.setKey('#{api_key}');
Airbrake.setHost('#{host}');
Airbrake.setEnvironment('#{environment}');
Please sign in to comment.
Something went wrong with that request. Please try again.