代码第922行存在逻辑错误,导致兼容Tampermonkey的其它脚本管理器无法获取Tokey
Opened this issue · 1 comments
examplecode commented
代码第922行存在逻辑错误,导致兼容Tampermonkey的其它脚本管理器无法获取Tokey, 其中922行 “if (!res.includes('authorize')“ 应该改为 " if (res.includes('authorize')“
if (manageHandler === 'Tampermonkey' && base.getMajorVersion(manageVersion) >= 5) {
openTab();
return waitForToken();
}
let res = await base.getFinalUrl(pan.pcs[3]);
if (!res.includes('authorize') && !res.includes('access_token=')) {
openTab();
return waitForToken();
}
AlphonseZetta10 commented
代码第922行存在逻辑错误,导致兼容Tampermonkey的其它脚本管理器无法获取Tokey, 其中922行 “if (!res.includes('authorize')“ 应该改为 " if (res.includes('authorize')“
if (manageHandler === 'Tampermonkey' && base.getMajorVersion(manageVersion) >= 5) { openTab(); return waitForToken(); } let res = await base.getFinalUrl(pan.pcs[3]); if (!res.includes('authorize') && !res.includes('access_token=')) { openTab(); return waitForToken(); }
感谢,整个问题困扰我很久了