Workaround for GM settings migration bug.
This commit is contained in:
parent
56ae941c4e
commit
e6e0cb01cd
@ -84,6 +84,16 @@ Main =
|
||||
return
|
||||
$.asap docSet, ->
|
||||
|
||||
# XXX https://github.com/greasemonkey/greasemonkey/issues/2600
|
||||
if typeof items.watchedThreads is 'string'
|
||||
changes = {}
|
||||
for key, val of items when typeof val is 'string'
|
||||
try
|
||||
val2 = JSON.parse val
|
||||
changes[key] = val2
|
||||
$.extend items, changes
|
||||
$.set changes
|
||||
|
||||
# Don't hide the local storage warning behind a settings panel.
|
||||
if $.cantSet
|
||||
# pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user