1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

workaround for process.windowsStore bug

This commit is contained in:
Kyle Spearrin 2019-09-20 23:58:24 -04:00
parent 929dd8415d
commit 6b82cd0380

View File

@ -15,7 +15,12 @@ export function isMacAppStore() {
} }
export function isWindowsStore() { export function isWindowsStore() {
return process.platform === 'win32' && process.windowsStore && process.windowsStore === true; const isWindows = process.platform === 'win32';
if (isWindows && !process.windowsStore &&
process.resourcesPath.indexOf('8bitSolutionsLLC.bitwardendesktop_') > -1) {
process.windowsStore = true;
}
return isWindows && process.windowsStore && process.windowsStore === true;
} }
export function isSnapStore() { export function isSnapStore() {