mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-15 20:58:01 +00:00
fix(utils/platform): isCreateTray 在瀏覽器環境應永遠為應永遠為 false
This commit is contained in:
parent
fbf695eb16
commit
748db54f52
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue