Skip to content

Commit

Permalink
chore: directly return false in IsDocNewTab without a required star…
Browse files Browse the repository at this point in the history
…tup parameter
  • Loading branch information
Bush2021 committed May 7, 2024
1 parent 865cce3 commit 501b0c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/iaccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,13 @@ bool IsNameNewTab(NodePtr top) {

// Determine whether it is a new tab page from the document value of the tab page.
bool IsDocNewTab() {

auto cr_command_line = GetCrCommandLine();
if (cr_command_line.find(L"--force-renderer-accessibility") ==
std::wstring::npos) {
return false;
}

bool flag = false;
HWND hwnd = FindWindowEx(GetForegroundWindow(), nullptr,
L"Chrome_RenderWidgetHostHWND", nullptr);
Expand Down

0 comments on commit 501b0c8

Please sign in to comment.