switch from jshint to eslint

This commit is contained in:
spalger
2016-01-08 14:18:35 -07:00
parent 7d5b0395e6
commit d0d55f8f3e
18 changed files with 16 additions and 124 deletions

View File

@ -12,12 +12,10 @@ var startsWithProtocolRE = /^([a-z]+:)?\/\//;
var defaultProto = 'http:';
var btoa;
/* jshint ignore:start */
if (typeof window !== 'undefined') {
defaultProto = window.location.protocol;
btoa = window.btoa;
}
/* jshint ignore:end */
btoa = btoa || function (data) {
return (new Buffer(data, 'utf8')).toString('base64');