]> khamidou — GitHub mirrors - electron.git/commitdiff
Using strict comparation
authorragingwind <ragingwind@gmail.com>
Fri, 22 Jan 2016 00:04:59 +0000 (09:04 +0900)
committerragingwind <ragingwind@gmail.com>
Fri, 22 Jan 2016 00:04:59 +0000 (09:04 +0900)
spec/static/main.js

index b295ba185525ec83a39dc5705207ba6f3ae3537d..c49b2318de6a4f378bfea2576f9c3a97fcf8f403 100644 (file)
@@ -93,7 +93,7 @@ app.on('ready', function() {
       message: 'Window is not responsing',
       detail: 'The window is not responding. Would you like to force close it or just keep waiting?'
     });
-    if (chosen == 0) window.destroy();
+    if (chosen === 0) window.destroy();
   });
 
   // For session's download test, listen 'will-download' event in browser, and