Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/mac os #187

Merged
merged 6 commits into from
Feb 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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