diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 14ac3e73142b..743e308d594a 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -241,13 +241,6 @@ bool ScopedDisableResize::disable_resize_ = false; } - (void)windowDidExitFullScreen:(NSNotification*)notification { - // For certain versions of macOS the fullscreen button will automatically show - // after exiting fullscreen mode. - if (!shell_->has_frame()) { - NSWindow* window = shell_->GetNativeWindow(); - [[window standardWindowButton:NSWindowFullScreenButton] setHidden:YES]; - } - shell_->NotifyWindowLeaveFullScreen(); } @@ -724,11 +717,6 @@ void NativeWindowMac::SetFullScreen(bool fullscreen) { if (fullscreen == IsFullscreen()) return; - if (!base::mac::IsOSLionOrLater()) { - LOG(ERROR) << "Fullscreen mode is only supported above Lion"; - return; - } - [window_ toggleFullScreen:nil]; }