mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 03:20:27 +00:00
Merge pull request #148 from lucasfischer/remove-image-on-load
remove tracking img on load, thanks @lucasfischer
This commit is contained in:
commit
d3dfcf649d
@ -172,8 +172,8 @@ function trackPageview() {
|
||||
data.lastSeen = +new Date();
|
||||
setCookie('_fathom', JSON.stringify(data), { expires: midnight, path: '/' });
|
||||
});
|
||||
i.addEventListener('load', () => document.body.removeChild(i));
|
||||
document.body.appendChild(i);
|
||||
window.setTimeout(() => { document.body.removeChild(i)}, 1000);
|
||||
}
|
||||
|
||||
// override global fathom object
|
||||
|
Loading…
x
Reference in New Issue
Block a user