multiple DataBoards with same key causes sync problems

This commit is contained in:
ccd0 2014-08-17 11:19:52 -07:00
parent fdcbb05f88
commit 5745ee6b0a
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ ThreadWatcher =
@list = @dialog.lastElementChild
@refreshButton = $ '.move > .refresh', @dialog
@unreaddb = new DataBoard 'lastReadPosts'
@unreaddb = Unread.db or new DataBoard 'lastReadPosts'
$.on d, 'QRPostSuccessful', @cb.post
$.on sc, 'click', @toggleWatcher

View File

@ -1,6 +1,6 @@
Unread =
init: ->
return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Favicon'] and !Conf['Desktop Notifications']
return if g.VIEW isnt 'thread' or !Conf['Unread Count'] and !Conf['Unread Favicon'] and !Conf['Desktop Notifications'] and !Conf['Show Unread Count']
@db = new DataBoard 'lastReadPosts', @sync
@hr = $.el 'hr',