Skip to content

Commit

Permalink
fix: handle new reCAPTCHA host
Browse files Browse the repository at this point in the history
Closes #290.
  • Loading branch information
dessant committed Apr 29, 2021
1 parent 0bb08c8 commit 9d092c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,14 @@ async function setChallengeLocale() {
'https://www.google.com/recaptcha/api2/bframe*',
'https://www.recaptcha.net/recaptcha/api2/anchor*',
'https://www.recaptcha.net/recaptcha/api2/bframe*',
'https://recaptcha.net/recaptcha/api2/anchor*',
'https://recaptcha.net/recaptcha/api2/bframe*',
'https://www.google.com/recaptcha/enterprise/anchor*',
'https://www.google.com/recaptcha/enterprise/bframe*',
'https://www.recaptcha.net/recaptcha/enterprise/anchor*',
'https://www.recaptcha.net/recaptcha/enterprise/bframe*'
'https://www.recaptcha.net/recaptcha/enterprise/bframe*',
'https://recaptcha.net/recaptcha/enterprise/anchor*',
'https://recaptcha.net/recaptcha/enterprise/bframe*'
],
types: ['sub_frame']
},
Expand Down Expand Up @@ -180,6 +184,7 @@ function addBackgroundRequestLitener() {
const urls = [
'https://www.google.com/*',
'https://www.recaptcha.net/*',
'https://recaptcha.net/*',
'https://api.wit.ai/*',
'https://speech.googleapis.com/*',
'https://*.speech-to-text.watson.cloud.ibm.com/*',
Expand Down
4 changes: 3 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
"matches": [
"https://www.google.com/recaptcha/api2/bframe*",
"https://www.recaptcha.net/recaptcha/api2/bframe*",
"https://recaptcha.net/recaptcha/api2/bframe*",
"https://www.google.com/recaptcha/enterprise/bframe*",
"https://www.recaptcha.net/recaptcha/enterprise/bframe*"
"https://www.recaptcha.net/recaptcha/enterprise/bframe*",
"https://recaptcha.net/recaptcha/enterprise/bframe*"
],
"all_frames": true,
"run_at": "document_idle",
Expand Down

0 comments on commit 9d092c2

Please sign in to comment.