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

Improve the behavior of preview mode on macOS #380

Merged
merged 5 commits into from
Aug 25, 2021
Merged

Improve the behavior of preview mode on macOS #380

merged 5 commits into from
Aug 25, 2021

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 24, 2021

This PR includes below updates to improve the behavior of preview mode on macOS:

  • Update a Dock icon to suit for the appearance style of macOS Big Sur.

    marp-dock

  • An initial window generated by --app is no longer used as a preview window because of a bit strange activation behavior when opened a single preview window. In macOS, Chromium browser will try to open a new window with UI like tabs and address bars if there were no windows which were opened through window.open(). So I changed that an initial window via --app will close immediately and Marp CLI will try to open a new initial window via window.open.

@yhatt yhatt merged commit 8530488 into main Aug 25, 2021
@yhatt yhatt deleted the mac-preview branch August 25, 2021 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant