Sha256: 252d13dd22db7e01bf25df97df686ce3c6113ecb16823a852d2b5c6615fa9cca

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

<%= javascript_tag %Q{
    try {
      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}" });
    } catch (e) {
      window.onerror = null;
    }
  }
%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
airbrake-3.2.1 lib/templates/javascript_notifier_configuration
airbrake-3.1.17 lib/templates/javascript_notifier_configuration
airbrake-3.1.16 lib/templates/javascript_notifier_configuration
airbrake-3.1.15 lib/templates/javascript_notifier_configuration
airbrake-3.1.14 lib/templates/javascript_notifier_configuration
airbrake-3.1.13 lib/templates/javascript_notifier_configuration