Sha256: 25472bde4e1d6e8da3ebc0a637d7077bf4cacd3615d93a59157a06217b67eac6
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 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{ 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
airbrake-3.1.12 | lib/templates/javascript_notifier |
airbrake-3.1.11 | lib/templates/javascript_notifier.erb |