Set 'Persistent Thread Watcher' to inverse of old 'Toggleable Thread Watcher' setting.
Per discussion in #983.
This commit is contained in:
parent
07b2b759c8
commit
e827b63336
@ -393,6 +393,9 @@ Settings =
|
||||
if compareString < '00001.00012.00000.00006'
|
||||
if data['sauces']?
|
||||
set 'sauces', data['sauces'].replace(/^(#?\s*)https:\/\/(?:desustorage|cuckchan)\.org\//mg, '$1https://desuarchive.org/')
|
||||
if compareString < '00001.00012.00001.00000'
|
||||
if not data['Persistent Thread Watcher']? and data['Toggleable Thread Watcher']?
|
||||
set 'Persistent Thread Watcher', not data['Toggleable Thread Watcher']
|
||||
changes
|
||||
|
||||
loadSettings: (data, cb) ->
|
||||
|
||||
@ -36,7 +36,7 @@ ThreadWatcher =
|
||||
$.addClass doc, 'fixed-watcher'
|
||||
if !Conf['Persistent Thread Watcher']
|
||||
@dialog.hidden = true
|
||||
|
||||
|
||||
Header.addShortcut 'watcher', sc, 510
|
||||
|
||||
ThreadWatcher.fetchAuto()
|
||||
|
||||
@ -385,7 +385,7 @@ Config =
|
||||
1
|
||||
]
|
||||
'Persistent Thread Watcher': [
|
||||
true
|
||||
false
|
||||
'The thread watcher will be visible when the page is loaded.'
|
||||
1
|
||||
]
|
||||
|
||||
@ -52,6 +52,7 @@ Main =
|
||||
Conf['Show Name and Subject'] = false
|
||||
Conf['QR Shortcut'] = true
|
||||
Conf['Bottom QR Link'] = true
|
||||
Conf['Toggleable Thread Watcher'] = true
|
||||
|
||||
# Pseudo-enforce default whitelist while configuration loads
|
||||
if $.platform is 'crx' then $.global ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user