feat: 支持 mail.163.com 的子域名匹配,优化邮箱处理逻辑
This commit is contained in:
+1
-1
@@ -249,7 +249,7 @@ function matchesSourceUrlFamily(source, candidateUrl, referenceUrl) {
|
||||
case 'qq-mail':
|
||||
return candidate.hostname === 'mail.qq.com' || candidate.hostname === 'wx.mail.qq.com';
|
||||
case 'mail-163':
|
||||
return candidate.hostname === 'mail.163.com';
|
||||
return candidate.hostname === 'mail.163.com' || candidate.hostname.endsWith('.mail.163.com');
|
||||
case 'inbucket-mail':
|
||||
return Boolean(reference)
|
||||
&& candidate.origin === reference.origin
|
||||
|
||||
+2
-1
@@ -42,7 +42,8 @@
|
||||
},
|
||||
{
|
||||
"matches": [
|
||||
"https://mail.163.com/*"
|
||||
"https://mail.163.com/*",
|
||||
"https://*.mail.163.com/*"
|
||||
],
|
||||
"js": ["content/utils.js", "content/mail-163.js"],
|
||||
"all_frames": true,
|
||||
|
||||
Reference in New Issue
Block a user