electron/spec/fixtures/api/crash.html

22 lines
504 B
HTML
Raw Normal View History

2013-11-14 16:10:43 +00:00
<html>
<body>
<script type="text/javascript" charset="utf-8">
var port = require('url').parse(window.location.href, true).query.port;
2013-11-14 16:10:43 +00:00
var crashReporter = require('crash-reporter');
crashReporter.start({
productName: 'Zombies',
companyName: 'Umbrella Corporation',
submitUrl: 'http://127.0.0.1:' + port,
2013-11-14 16:10:43 +00:00
autoSubmit: true,
ignoreSystemCrashHandler: true,
extra: {
'extra1': 'extra1',
'extra2': 'extra2',
}
2013-11-14 16:10:43 +00:00
});
setImmediate(function() { process.crash(); });
</script>
</body>
</html>