Skip to content

Commit 77e10ae

Browse files
committed
Fix yarn dev
1 parent bf00cf4 commit 77e10ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gatsby-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const onRouteUpdate = ({ location, prevLocation }) => {
4343
if (isBrowser) {
4444
function watchAndFireAnalytics() {
4545
// eslint-disable-next-line no-undef
46-
if (typeof window._satellite !== 'undefined') {
46+
if (typeof window._satellite !== 'undefined' && typeof window._satellite.track === 'function') {
4747
// eslint-disable-next-line no-undef
4848
_satellite.track('state',
4949
{

0 commit comments

Comments
 (0)