Refactor do not track code.
This commit is contained in:
@@ -13,7 +13,7 @@ import { post, hook, doNotTrack } from '../lib/web';
|
||||
|
||||
const script = document.querySelector('script[data-website-id]');
|
||||
|
||||
if (!script || doNotTrack()) return;
|
||||
if (!script || (__DNT__ && doNotTrack())) return;
|
||||
|
||||
const website = script.getAttribute('data-website-id');
|
||||
const hostUrl = new URL(script.src).origin;
|
||||
|
||||
Reference in New Issue
Block a user