scripts/authorize.js
/**
   * Parses Access Code
   *
   * @param url The url containing the access code.
   */
Parses Access Code
@param url The url containing the access code.
Parses Access Code @param url The url containing the access code .
parseAccessCode(url) {
    if (url.match(/\?error=(.+)/)) {
      chrome.tabs.getCurrent(function (tab) {
        chrome.tabs.remove(tab.id, function () {});
      });
    } else {
      this.requestToken(url.match(/\?code=([\w\/\-]+)/)[1]);
    }
  }
parseAccessCode ( url ) { if ( url . match ( / \?error=(.+) / ) ) { chrome . tabs . getCurrent ( function ( tab ) { chrome . tabs . remove ( tab . id , function ( ) { } ) ; } ) ; } else { this . requestToken ( url . match ( / \?code=([\w\/\-]+) / ) [ 1 ] ) ; } }
Parses Access Code
 @param url The url containing the access code.
Parses Access Code @param url The url containing the access code .
// eslint-disable-next-line