mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
workaround for process.windowsStore bug
This commit is contained in:
parent
929dd8415d
commit
6b82cd0380
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user