Skip to content

Commit 913c3de

Browse files
committed
Fix view counting GPC check
Turns out it's a real boolean, not a string like DNT
1 parent 1dc4af9 commit 913c3de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/tw-windchime-submitter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const isOptedOut = () => {
2424
// These headers are really intended to be about third-parties so we don't need to follow them,
2525
// but if someone has these set, it's good to assume that they would opt out if given the choice.
2626
// So we'll just respect that preemptively.
27-
return navigator.globalPrivacyControl === 'true' || navigator.doNotTrack === '1';
27+
return navigator.globalPrivacyControl || navigator.doNotTrack === '1';
2828
};
2929

3030
class TWWindchimeSubmitter extends React.Component {

0 commit comments

Comments
 (0)