uawdijnntqw1x1x1
IP : 3.149.230.10
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
public_html
/
wp-content
/
plugins
/
wp-smushit
/
.
/
_src
/
js
/
..
/
js
/
utils
/
tracker.js
/
/
import Fetcher from './fetcher'; class Tracker { /* @private */ #doingEvents = new Set(); #allowToTrack; track( event, properties = {} ) { if ( ! this.allowToTrack() || this.inProgressEvent( event ) ) { return; } this.setInProgressEvent( event ); return Fetcher.common.track( event, properties ).then( ( res ) => { setTimeout( () => { this.restoreInProgressEvent( event ); }, 1000 ); return res; } ); } inProgressEvent( event ) { return this.#doingEvents.has( event ); } setInProgressEvent( event ) { this.#doingEvents.add( event ); } restoreInProgressEvent( event ) { this.#doingEvents.delete( event ); } allowToTrack() { return this.#allowToTrack || !! ( window.wp_smush_mixpanel?.opt_in ); } setAllowToTrack( allowToTrack ) { this.#allowToTrack = allowToTrack; return this; } } const tracker = new Tracker(); export default tracker;
/home/batcwwjx/public_html/wp-content/plugins/wp-smushit/./_src/js/../js/utils/tracker.js