]> khamidou — GitHub mirrors - electron.git/commitdiff
Break on first found app
authorCheng Zhao <zcbenz@gmail.com>
Wed, 1 Oct 2014 12:40:52 +0000 (20:40 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 1 Oct 2014 12:40:52 +0000 (20:40 +0800)
atom/browser/lib/init.coffee

index ddfa56169611b6e0cc2e924027cdb8d03e3cc77b..a00e9adcac0009b5c6393050bf86a15354a1a6c6 100644 (file)
@@ -67,6 +67,7 @@ setImmediate ->
     try
       packagePath = path.join process.resourcesPath, packagePath
       packageJson = JSON.parse(fs.readFileSync(path.join(packagePath, 'package.json')))
+      break
     catch e
       continue