Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
workaround for process.windowsStore bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Sep 21, 2019
1 parent 929dd84 commit 6b82cd0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/electron/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export function isMacAppStore() {
}

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() {
Expand Down

0 comments on commit 6b82cd0

Please sign in to comment.