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

联网状态检测 #24

Open
ClumsyLee opened this issue Oct 22, 2015 · 0 comments
Open

联网状态检测 #24

ClumsyLee opened this issue Oct 22, 2015 · 0 comments

Comments

@ClumsyLee
Copy link
Owner

可能在断网后暂停监测,联网后马上监测一次。

应该可以用 http://electron.atom.io/docs/v0.34.0/tutorial/online-offline-events/ 中的方式实现,大概方法是创建一个 BrowserWindow 但是不显示。

进一步可以看看能不能用这个隐藏的窗口直接用 js 的 Notification,可能会方便不少。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant