Skip to content

Instantly share code, notes, and snippets.

@borismus
Created June 24, 2011 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borismus/1045685 to your computer and use it in GitHub Desktop.
Save borismus/1045685 to your computer and use it in GitHub Desktop.
JSHint Errors
function(config) {
// JSHint error on next line: "Line breaking error 'return'. Following line: "Bad escapement."
return 'https://accounts.google.com/o/oauth2/auth?\
client_id={{CLIENT_ID}}&\
redirect_uri={{REDIRECT_URI}}&\
scope={{API_SCOPE}}&\
response_type=code'
.replace('{{CLIENT_ID}}', config.clientId)
.replace('{{REDIRECT_URI}}', this.redirectURL(config))
.replace('{{API_SCOPE}}', config.apiScope);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment