* Parses Access Code * * @param url The url containing the access code.
(url)
| 25 | * @param url The url containing the access code. |
| 26 | */ |
| 27 | parseAccessCode(url) { |
| 28 | if (url.match(/\?error=(.+)/)) { |
| 29 | chrome.tabs.getCurrent(function (tab) { |
| 30 | chrome.tabs.remove(tab.id, function () {}); |
| 31 | }); |
| 32 | } else { |
| 33 | // eslint-disable-next-line |
| 34 | this.requestToken(url.match(/\?code=([\w\/\-]+)/)[1]); |
| 35 | } |
| 36 | }, |
| 37 | |
| 38 | /** |
| 39 | * Request Token |
nothing calls this directly
no outgoing calls
no test coverage detected