multiple DataBoards with same key causes sync problems
This commit is contained in:
parent
fdcbb05f88
commit
5745ee6b0a
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user