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?()
|
cb?()
|
||||||
|
|
||||||
$.clear = (cb) ->
|
$.clear = (cb) ->
|
||||||
GM.listValues().then (keys) ->
|
GM.listValues().then((keys) ->
|
||||||
$.delete keys.map((key) -> key.replace g.NAMESPACE, ''), cb
|
$.delete keys.map((key) -> key.replace g.NAMESPACE, ''), cb
|
||||||
|
).catch( ->
|
||||||
|
$.delete Object.keys(Conf).concat(['previousversion', 'QR Size', 'QR.persona', 'hiddenPSA']), cb
|
||||||
|
)
|
||||||
else
|
else
|
||||||
|
|
||||||
unless GM_deleteValue?
|
unless GM_deleteValue?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user