Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
New Noification Implementation #522
Conversation
|
测试之后马上merge。 |
|
mac没问题。 |
重新实现了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。下面是效果截图。
