Skip to content

Commit

Permalink
Fix/mac os (#187)
Browse files Browse the repository at this point in the history
* fix: removed custom mac container setting
* Release v1.6.1
  • Loading branch information
stamoun authored Feb 27, 2022
1 parent 76c346c commit 6d504f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lofi",
"version": "1.6.0",
"version": "1.6.1",
"description": "Mini Spotify player with visualizations.",
"homepage": "http://lofi.rocks",
"main": "./pack/main.bundle.js",
Expand Down
6 changes: 2 additions & 4 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const SPOTIFY_API_URL = 'https://api.spotify.com/v1';
export const WINDOWS = os.platform() === 'win32';
export const LINUX = os.platform() === 'linux';
export const MACOS = os.platform() === 'darwin';
export const MACOS_MOJAVE_AND_NEWER = MACOS && parseInt(os.release().split('.')[0]) >= 18;

export const HEIGHT = 150;
export const WIDTH = 150;
Expand All @@ -22,15 +21,14 @@ export const LOFI_SHUFFLED_PLAYLIST_NAME = 'Shuffled by Lofi';
// See: https://github.com/electron/electron/issues/13164
// NOTE: This only works because we're using some black magic to return our own ConstrainFrameRect
export const CONTAINER = {
VERTICAL: MACOS_MOJAVE_AND_NEWER ? 4000 : 800,
HORIZONTAL: MACOS_MOJAVE_AND_NEWER ? 4000 : 800,
VERTICAL: 800,
HORIZONTAL: 800,
};

export const SETTINGS_CONTAINER = {
VERTICAL: 500,
HORIZONTAL: 500,
};

export const DEFAULT_SETTINGS = {
version: version,
debug: false,
Expand Down

0 comments on commit 6d504f6

Please sign in to comment.