Sha256: 0b7f51ac378715a6f6be06c74f6354fac71e076daf587b9379efd9f0137af7d2

Contents?: true

Size: 674 Bytes

Versions: 23

Compression:

Stored size: 674 Bytes

Contents

<%= javascript_tag %Q{
  (function(){
    var notifierJsScheme = (("https:" == document.location.protocol) ? "https://" : "http://");
    document.write(unescape("%3Cscript src='" + notifierJsScheme + "#{host}/javascripts/notifier.js' type='text/javascript'%3E%3C/script%3E"));
  })();
}%>

<%= javascript_tag %Q{
    window.Airbrake = (typeof(Airbrake) == 'undefined' && typeof(Hoptoad) != 'undefined') ? Hoptoad : Airbrake
    Airbrake.setKey('#{api_key}');
    Airbrake.setHost('#{host}');
    Airbrake.setEnvironment('#{environment}');
    Airbrake.setErrorDefaults({ url: "#{escape_javascript url}", component: "#{controller_name}", action: "#{action_name}" });
  }
%>

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
airbrake-3.1.10 lib/templates/javascript_notifier.erb
airbrake-3.1.9 lib/templates/javascript_notifier.erb
projectlocker_errata-0.1.1 lib/templates/javascript_notifier.erb
projectlocker_errata-0.1.0 lib/templates/javascript_notifier.erb
airbrake-3.1.8 lib/templates/javascript_notifier.erb
airbrake-3.1.7 lib/templates/javascript_notifier.erb
airbrake-3.1.6 lib/templates/javascript_notifier.erb
airbrake-3.1.5 lib/templates/javascript_notifier.erb
projectlocker_errata-0.0.2 lib/templates/javascript_notifier.erb
projectlocker_errata-0.0.1 lib/templates/javascript_notifier.erb
airbrake-3.1.4 lib/templates/javascript_notifier.erb
airbrake-3.1.3 lib/templates/javascript_notifier.erb
airbrake-3.1.2 lib/templates/javascript_notifier.erb
airbrake-3.1.1 lib/templates/javascript_notifier.erb
airbrake-3.1.0 lib/templates/javascript_notifier.erb
airbrake-3.0.9 lib/templates/javascript_notifier.erb
airbrake-3.0.8 lib/templates/javascript_notifier.erb
airbrake-3.0.7 lib/templates/javascript_notifier.erb
airbrake-3.0.6 lib/templates/javascript_notifier.erb
airbrake-3.0.5 lib/templates/javascript_notifier.erb