Merge pull request #8806 from electron/felix-winstore-moved

Fix init check for process.windowsStore
This commit is contained in:
Kevin Sawicki 2017-03-02 10:35:08 -08:00 committed by GitHub
commit 8f7785bb05

View file

@ -56,7 +56,7 @@ if (process.platform === 'win32') {
//
// Nobody else get's to install there, changing the path is forbidden
// We can therefore say that we're running as appx
if (__dirname.indexOf('\\Program Files\\WindowsApps\\') === 2) {
if (__dirname.includes('\\WindowsApps\\')) {
process.windowsStore = true
}
}