fix(utils/platform): isCreateTray 在瀏覽器環境應永遠為應永遠為 false

This commit is contained in:
memorydream 2022-03-16 15:45:36 +08:00 committed by pan93412
parent fbf695eb16
commit 748db54f52

View File

@ -3,5 +3,6 @@ export const isMac = process.platform === 'darwin';
export const isLinux = process.platform === 'linux';
export const isDevelopment = process.env.NODE_ENV === 'development';
export const isCreateTray = isWindows || isLinux || isDevelopment;
export const isCreateTray =
process.env.IS_ELECTRON && (isWindows || isLinux || isDevelopment);
export const isCreateMpris = isLinux;