Fix init check for process.windowsStore

Windows now allows users to move their `WindowsApps` folder, meaning that it can end up on a different drive (and outside of `Program Files`).
This commit is contained in:
Felix Rieseberg 2017-03-01 11:48:51 -08:00 committed by GitHub
parent 59e656586d
commit 4aaa936803

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
}
}