regexper-static/gatsby-browser.js
2019-01-03 21:33:13 -05:00

9 lines
229 B
JavaScript

import * as Sentry from '@sentry/browser';
import 'site.css';
export const onClientEntry = () => {
Sentry.getCurrentHub().getClient().getOptions().enabled =
(navigator.doNotTrack !== '1' && window.doNotTrack !== '1');
};