diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index b1ef28e731..f04e496f9a 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1175,7 +1175,7 @@ bool WebContents::IsFocused() const { if (!view) return false; if (GetType() != BACKGROUND_PAGE) { - auto window = web_contents()->GetNativeView()->GetTopLevelWindow(); + auto window = web_contents()->GetNativeView()->GetToplevelWindow(); if (window && !window->IsVisible()) return false; }