Shelley Vohr 7 years ago
parent
commit
131aa38768
2 changed files with 3 additions and 3 deletions
  1. 1 1
      atom/browser/native_window_mac.mm
  2. 2 2
      docs/api/browser-window.md

+ 1 - 1
atom/browser/native_window_mac.mm

@@ -1136,7 +1136,7 @@ bool NativeWindowMac::IsEnabled() {
 }
 
 void NativeWindowMac::SetEnabled(bool enable) {
-  if (enable){
+  if (enable) {
     // TODO(codebytere): figure out how to implement window enabling
   } else {
     [window_ attachedSheet] = nil;

+ 2 - 2
docs/api/browser-window.md

@@ -847,9 +847,9 @@ the supplied bounds.
 
 Returns [`Rectangle`](structures/rectangle.md)
 
-### `win.setEnabled(enabled)`
+### `win.setEnabled(enable)`
 
-* `enabled` Boolean
+* `enable` Boolean
 
 Disable or enable the window.