Check hostnames matches PLAUSIBLE_DOMAIN

This commit is contained in:
Thomas Weber committed 2021-06-24 14:12:51 -05:00
1 parent fa00aeec1a
commit 64ae7f90a7
1 file changed
+1 -2
+1 -2
View File
@@ -4,8 +4,7 @@ const enabled =
PLAUSIBLE_API &&
PLAUSIBLE_DOMAIN &&
(location.protocol === 'http:' || location.protocol === 'https:') &&
// once we deploy to the right domain we should also domain
// location.hostname === PLAUSIBLE_DOMAIN &&
location.hostname === PLAUSIBLE_DOMAIN &&
navigator.doNotTrack !== '1';
const sendEvent = eventName => {