Skip to content

Commit

Permalink
chore: relax criteria for new tab link detection (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed Apr 7, 2024
1 parent c96a8dd commit de20a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IAccessibleUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ bool IsDocNewTab() {
GetAccessibleValue(Document, [&flag](BSTR bstr) {
std::wstring_view bstr_view(bstr);
flag =
bstr_view.find(L"chrome://newtab") != std::wstring_view::npos ||
bstr_view.find(L"chrome://new-tab-page") != std::wstring_view::npos;
bstr_view.find(L"://newtab") != std::wstring_view::npos ||
bstr_view.find(L"://new-tab-page") != std::wstring_view::npos;
});
}
}
Expand Down

0 comments on commit de20a5a

Please sign in to comment.