Make $.forceSync work in Firefox with cookies disabled.

This commit is contained in:
ccd0 2016-01-05 23:16:26 -08:00
parent a3f8ea3531
commit f26cf75239

View File

@ -513,7 +513,7 @@ if GM_addValueChangeListener?
newValue = JSON.parse newValue unless newValue is undefined
cb newValue, key
$.forceSync = ->
else if $.hasStorage
else if GM_deleteValue? or $.hasStorage
$.sync = (key, cb) ->
key = g.NAMESPACE + key
$.syncing[key] = cb