Sha256: 5529f89b8eafb172594cb85fe688c5f5066a61963b12e02d18bb6ffbc8bb4fbb

Contents?: true

Size: 607 Bytes

Versions: 3

Compression:

Stored size: 607 Bytes

Contents

<script type="text/javascript"> 
//<![CDATA[
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"));
//]]>
</script> 

<script type="text/javascript">
  Hoptoad.setKey('<%= api_key %>');
  Hoptoad.setHost('<%= host %>');
  Hoptoad.setEnvironment('<%= environment %>');
    Hoptoad.setErrorDefaults({
      url: "<%= request.url %>",
      component: "<%= controller_name %>",
      action: "<%= action_name %>"
  });
</script>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hoptoad_notifier-2.3.12 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.3.11 lib/templates/javascript_notifier.erb
hoptoad_notifier-2.3.10 lib/templates/javascript_notifier.erb