Merge pull request #8806 from electron/felix-winstore-moved
Fix init check for process.windowsStore
This commit is contained in:
commit
8f7785bb05
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ if (process.platform === 'win32') {
|
||||||
//
|
//
|
||||||
// Nobody else get's to install there, changing the path is forbidden
|
// Nobody else get's to install there, changing the path is forbidden
|
||||||
// We can therefore say that we're running as appx
|
// We can therefore say that we're running as appx
|
||||||
if (__dirname.indexOf('\\Program Files\\WindowsApps\\') === 2) {
|
if (__dirname.includes('\\WindowsApps\\')) {
|
||||||
process.windowsStore = true
|
process.windowsStore = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue