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

getOpenWindows() -> parseMac() -> JSON.parse issues #171

Open
tom2strobl opened this issue Aug 28, 2023 · 0 comments
Open

getOpenWindows() -> parseMac() -> JSON.parse issues #171

tom2strobl opened this issue Aug 28, 2023 · 0 comments

Comments

@tom2strobl
Copy link

My users ran 5 times into this issue:

Error: Error parsing window data
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at parseMac (<redacted>/node_modules/active-win/lib/macos.js:11:15)
    at AsyncFunction.module.exports.getOpenWindows

It corresponds to this JSON.parse() call:
https://github.com/sindresorhus/active-win/blob/27221e5da0a64025bdec8759605694ea84ff9f68/lib/macos.js#L9C1-L16C3

might be related to #170

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

No branches or pull requests

1 participant