mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 14:59:12 +02:00
Update eslint and .travis.yml (#259)
* simplify .travis.yml * Fixes error and warning from eslint 15:32 error Unnecessary escape character: \? no-useless-escape
This commit is contained in:
@@ -12,7 +12,7 @@ const AUTH_URL =
|
||||
const VALIDATION_BASE_URL="https://www.googleapis.com/oauth2/v3/tokeninfo";
|
||||
|
||||
function extractAccessToken(redirectUri) {
|
||||
let m = redirectUri.match(/[#\?](.*)/);
|
||||
let m = redirectUri.match(/[#?](.*)/);
|
||||
if (!m || m.length < 1)
|
||||
return null;
|
||||
let params = new URLSearchParams(m[1].split("#")[0]);
|
||||
|
||||
Reference in New Issue
Block a user