mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
isSnapStore util
This commit is contained in:
parent
d5754d6a58
commit
7a7387848f
@ -18,6 +18,10 @@ export function isWindowsStore() {
|
|||||||
return process.platform === 'win32' && process.windowsStore && process.windowsStore === true;
|
return process.platform === 'win32' && process.windowsStore && process.windowsStore === true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function isSnapStore() {
|
||||||
|
return process.platform === 'linux' && process.env.SNAP_USER_DATA != null;
|
||||||
|
}
|
||||||
|
|
||||||
export function isWindowsPortable() {
|
export function isWindowsPortable() {
|
||||||
return process.platform === 'win32' && process.env.PORTABLE_EXECUTABLE_DIR != null;
|
return process.platform === 'win32' && process.env.PORTABLE_EXECUTABLE_DIR != null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user