Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

New Noification Implementation #522

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gehuangyi20
Copy link
Contributor

重新实现了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。下面是效果截图。
example

@geeeeeeeeek
Copy link
Owner

测试之后马上merge。

@Kulbear
Copy link
Collaborator

Kulbear commented Aug 1, 2017

mac没问题。

piondes2 pushed a commit to piondes2/electronic-wechat that referenced this pull request Nov 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants