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

There is no interval.unref in Electron #109

Closed
lierdakil opened this issue May 16, 2020 · 1 comment · Fixed by #110
Closed

There is no interval.unref in Electron #109

lierdakil opened this issue May 16, 2020 · 1 comment · Fixed by #110
Assignees
Labels

Comments

@lierdakil
Copy link

interval.unref()

This line breaks compatibility with Electron apps, which uses Chromium-provided setTimeout/setInterval instead of Node's implementations.

Perhaps a reasonable band-aid is to check if unref function exists before invoking it?

@simonepri
Copy link
Collaborator

simonepri commented May 18, 2020

@lierdakil Would you mind submitting a PR?

I think checking before invocation is fine.

soyuka added a commit that referenced this issue May 19, 2020
@soyuka soyuka mentioned this issue May 19, 2020
soyuka added a commit that referenced this issue May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants