1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

isSnapStore util

This commit is contained in:
Kyle Spearrin 2018-02-23 17:18:14 -05:00
parent d5754d6a58
commit 7a7387848f

View File

@ -18,6 +18,10 @@ export function isWindowsStore() {
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() {
return process.platform === 'win32' && process.env.PORTABLE_EXECUTABLE_DIR != null;
}