component/tracker.js
/*
    Check wheter a hostname is tracked by the extension
*/
Check wheter a hostname is tracked by the extension
Check wheter a hostname is tracked by the extension
async function isTracked(hostname) {
    if (!hostname || hostname.length === 0 || hostname.indexOf(".") === -1)
        return false;
    let _settings = await settings.get();
    if (_settings.track.all === true || _settings.hosts.findIndex(e => e.hostname === hostname) > -1) {
        return true;
    } else {
        return false;
    }
}
async function isTracked ( hostname ) { if ( ! hostname || hostname . length === 0 || hostname . indexOf ( "." ) === - 1 ) return false ; let _settings = await settings . get ( ) ; if ( _settings . track . all === true || _settings . hosts . findIndex ( e => e . hostname === hostname ) > - 1 ) { return true ; } else { return false ; } }
Check wheter a hostname is tracked by the extension
Check wheter a hostname is tracked by the extension