Workaround for GM settings migration bug.
This commit is contained in:
parent
56ae941c4e
commit
e6e0cb01cd
@ -84,6 +84,16 @@ Main =
|
|||||||
return
|
return
|
||||||
$.asap docSet, ->
|
$.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.
|
# Don't hide the local storage warning behind a settings panel.
|
||||||
if $.cantSet
|
if $.cantSet
|
||||||
# pass
|
# pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user