This repository has been archived by the owner on Nov 12, 2018. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
重新实现了notification, 通过inject window.Notification 来catch new incoming notification。可以通过点击叉来关闭,或者点击一个notification来打开微信跳转到发notification的用户。每个notification都是一个browserWIndow。 目前最多允许5个notification,每个notification显示10秒。Notification window 会在notification消失10秒后销毁,否则在新的notification来的时候可以马上recycle。可以通过参数设置来改变显示notification的位置(4个角都可以),notification驻留时间,window 销毁时间,和最多多少个notification。下面是效果截图。