XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update cdp.py

5bcec783
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/requests/cdp.py +1 -1
@@ -676,7 +676,7 @@ class CDPSession:
676 676 const buttons = document.querySelectorAll('button, input[type="submit"]');
677 677 for (let button of buttons) {
678 678 const text = button.textContent.trim();
679 if (text === 'Accept' || text === 'Einwilligen' || text === 'Alle akzeptieren') {
679 if (text === 'Accept' || text == 'Accept all' || text === 'Einwilligen' || text === 'Alle akzeptieren') {
680 680 const rect = button.getBoundingClientRect();
681 681 return {
682 682 x: rect.left + window.scrollX,