Fix setting clearing in GM4. #1531

This commit is contained in:
ccd0 2017-10-17 20:42:49 -07:00
parent 8bc6fe1ed3
commit d71ce7b16a

View File

@ -545,7 +545,7 @@ 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
else