修正 contact-verification 手机验证码页识别

This commit is contained in:
QLHazyCoder
2026-05-16 05:06:04 +08:00
parent 846e8b2c7b
commit 31046c1116
2 changed files with 38 additions and 1 deletions
+6 -1
View File
@@ -3083,7 +3083,12 @@ function isAddEmailPageReady() {
function isPhoneVerificationPageReady() {
const path = `${location.pathname || ''} ${location.href || ''}`;
if (/\/phone-verification(?:[/?#]|$)/i.test(path)) {
const isPhoneVerificationRoute = /\/phone-verification(?:[/?#]|$)/i.test(path);
const isContactVerificationRoute = /\/contact-verification(?:[/?#]|$)/i.test(path);
if (isContactVerificationRoute && getContactVerificationServerErrorText()) {
return false;
}
if (isPhoneVerificationRoute || isContactVerificationRoute) {
return true;
}