]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix typo
authorCheng Zhao <zcbenz@gmail.com>
Fri, 5 Jun 2015 02:02:42 +0000 (10:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 5 Jun 2015 02:03:01 +0000 (10:03 +0800)
atom/browser/default_app/main.js

index 3ca8081e23c0552c77fbd9604f8ab7c259aef3af..f59b6e0efe7a4c87783a6c9a033b66b75876f410 100644 (file)
@@ -124,7 +124,7 @@ app.once('ready', function() {
             click: function() {
               var focusedWindow = BrowserWindow.getFocusedWindow();
               if (focusedWindow)
-                mainWindow.restart();
+                focusedWindow.reload();
             }
           },
           {