Workaround for GM settings migration bug.

This commit is contained in:
ccd0 2017-11-15 01:14:22 -08:00
parent 56ae941c4e
commit e6e0cb01cd

View File

@ -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