regexper-static/gatsby-browser.js

9 lines
229 B
JavaScript
Raw Normal View History

2019-01-04 02:33:13 +00:00
import * as Sentry from '@sentry/browser';
import 'site.css';
export const onClientEntry = () => {
Sentry.getCurrentHub().getClient().getOptions().enabled =
(navigator.doNotTrack !== '1' && window.doNotTrack !== '1');
};