Tolerate failure of GM.listValues.
This commit is contained in:
parent
a2ed86e4f0
commit
d5414fbdba
@ -568,9 +568,11 @@ if GM?.deleteValue? and window.BroadcastChannel and not GM_addValueChangeListene
|
||||
cb?()
|
||||
|
||||
$.clear = (cb) ->
|
||||
GM.listValues().then (keys) ->
|
||||
GM.listValues().then((keys) ->
|
||||
$.delete keys.map((key) -> key.replace g.NAMESPACE, ''), cb
|
||||
|
||||
).catch( ->
|
||||
$.delete Object.keys(Conf).concat(['previousversion', 'QR Size', 'QR.persona', 'hiddenPSA']), cb
|
||||
)
|
||||
else
|
||||
|
||||
unless GM_deleteValue?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user