zulip/static
Robert Hönig 4f9bbb1c8a Fix duplicate notifications when multiple Zulip tabs are openend.
We attempted a number of different approaches to solving this problem:

First, we tried using HTML5 local storage to keep track of which
browser should have created the desktop notification.  This failed
because one needs locking, and it doesn't appear there is an working
locking implementation for HTML5 local storage that could allow us to
do this across tabs.  See #2936 for details.

Ultimately we went with setting the message ID as a tag.  Tags are
intended to be used for updating existing desktop notifications, which
means this implementation causes new notifications to flicker in and
out sometimes when multiple tabs are open, but that certainly beats
having duplicates.

Fixes #99.
2017-01-02 16:58:51 -08:00
..
assets pep8: Fix E128 violations. 2016-12-13 10:50:14 -08:00
audio Change audible notification to a "knock" sound. 2014-02-12 17:09:39 -05:00
generated Move static/third/gemoji to static/generated/emoji. 2016-12-27 20:16:23 -08:00
html Fix end tags in 404/5xx pages. 2016-07-09 17:34:49 -07:00
images Update signing in page. 2017-01-02 16:34:15 -08:00
js Fix duplicate notifications when multiple Zulip tabs are openend. 2017-01-02 16:58:51 -08:00
locale Django 1.10: Update i18n. 2016-12-13 21:40:43 -08:00
styles notifications: Improve HTML/CSS for desktop notifications. 2017-01-02 16:42:04 -08:00
templates notifications: Improve HTML/CSS for desktop notifications. 2017-01-02 16:42:04 -08:00
third bug fix: Handle empty at-mentions gracefully. 2016-12-21 15:32:12 -08:00
.gitignore Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
favicon.ico Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
node_modules Create static/node_modules symlink. 2016-08-25 15:32:08 -07:00
robots.txt Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00