mirror of https://github.com/status-im/fathom.git
Merge branch 'master' of https://github.com/usefathom/fathom
* 'master' of https://github.com/usefathom/fathom: remove tracking image after it finished loading
This commit is contained in:
commit
e82e363613
|
@ -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…
Reference in New Issue