JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.ravenjs.com/3.24.0/raven.min.js"></script>
<button id="show">
Show Sentry Report Dialog
<script src="https://browser.sentry-cdn.com/4.4.2/bundle.min.js" crossorigin="anonymous"></script>
<script>
Sentry.init({ dsn: 'https://[email protected]/1360121' });
</script>
<link rel="stylesheet" href="http:127.0.0.1:8888/aaa.css">
</button>
CSS
header {
position: fixed;
top: 60px;
z-index: 100;
width: 100%;
min-height: 64px;
}
JavaScript
Raven.config('https://[email protected]/59156').install();
document.getElementById('show').addEventListener('click', function () {
try {
throw new Error('error');
} catch (err) {
Raven.captureException(err);
Raven.showReportDialog();
}
}, false);