UNPKG

raygun4js

Version:
47 lines (42 loc) 1.66 kB
<!DOCTYPE html> <html> <head> <title>Raygun4JS with V2 API</title> <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> <script src="/fixtures/common/instrumentXHRs.js"></script> <script type="text/javascript"> !function(a,b,c,d,e,f,g,h){a.RaygunObject=e,a[e]=a[e]||function(){ (a[e].o=a[e].o||[]).push(arguments)},f=b.createElement(c),g=b.getElementsByTagName(c)[0], f.async=1,f.src=d,g.parentNode.insertBefore(f,g),h=a.onerror,a.onerror=function(b,c,d,f,g){ h&&h(b,c,d,f,g),g||(g=new Error(b)),a[e].q=a[e].q||[],a[e].q.push({ e:g})}}(window,document,"script","/dist/raygun.js","rg4js"); </script> </head> <body> <script type="text/javascript"> rg4js('apiKey', 'abcdef=='); rg4js('enableCrashReporting', true); rg4js('options', { allowInsecureSubmissions: true, debugMode: true }); rg4js('disableAutoBreadcrumbsNavigation'); rg4js('disableAutoBreadcrumbsConsole'); setTimeout(function() { $.get('automatic.console.html').always(function() { var request = new XMLHttpRequest(); request.open('POST', 'automatic.navigation.html'); request.responseType = 'document'; request.send('{"foo": 1}', false); $.get('/fixtures/breadcrumbs/automatic.xhr.html'); }); setTimeout(function() { throw new Error('Unhandled error'); }, 800); }, 500); </script> </body> </html>