lib/browser/crypto.js
function() {
    if (typeof window.Worker === 'undefined' || typeof window.URL === 'undefined') {
        return false;
    }

    try {
        /* eslint-disable no-new */
        new Worker(window.URL.createObjectURL(
            new Blob([''], { type: 'text/javascript' })
        ));
        /* eslint-enable no-new */
    } catch (e) {
        return false;
    }

    return true;
}
function() {
    if (typeof window.Worker === 'undefined' || typeof window.URL === 'undefined') {
        return false;
    }

    try {
        /* eslint-disable no-new */
        new Worker(window.URL.createObjectURL(
            new Blob([''], { type: 'text/javascript' })
        ));
        /* eslint-enable no-new */
    } catch (e) {
        return false;
    }

    return true;
}
function ( ) { if ( typeof window . Worker === 'undefined' || typeof window . URL === 'undefined' ) { return false ; } try { /* eslint-disable no-new */ new Worker ( window . URL . createObjectURL ( new Blob ( [ '' ] , { type : 'text/javascript' } ) ) ) ; /* eslint-enable no-new */ } catch ( e ) { return false ; } return true ; }
Checks if webworkers are supported

@return {Boolean}
Checks if webworkers are supported