- Check if user is blocking 3rd party domain
- $.ajax 'http://aws.amazon.com/s3/',
- type: 'GET',
- dataType: 'html'
- complete: (e, xhr, settings) ->
- if e.status == 200
- console.log "Not Blocking S3"
- else
- console.log "Blocking S3"
- <img id="checkImg" src="https://www.google.com/images/srpr/logo3w.pngAAA" />
- if(document.getElementById('checkImg').clientWidth != 275)
- alert("Error")