Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Fix bug in defining the Airbrake javascript object
Browse files Browse the repository at this point in the history
  • Loading branch information
Harold Giménez committed Aug 29, 2011
1 parent a9c3eb6 commit 3112681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/javascript_notifier.erb
Expand Up @@ -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}');
Expand Down

0 comments on commit 3112681

Please sign in to comment.