Make $.forceSync work in Firefox with cookies disabled.
This commit is contained in:
parent
a3f8ea3531
commit
f26cf75239
@ -513,7 +513,7 @@ if GM_addValueChangeListener?
|
|||||||
newValue = JSON.parse newValue unless newValue is undefined
|
newValue = JSON.parse newValue unless newValue is undefined
|
||||||
cb newValue, key
|
cb newValue, key
|
||||||
$.forceSync = ->
|
$.forceSync = ->
|
||||||
else if $.hasStorage
|
else if GM_deleteValue? or $.hasStorage
|
||||||
$.sync = (key, cb) ->
|
$.sync = (key, cb) ->
|
||||||
key = g.NAMESPACE + key
|
key = g.NAMESPACE + key
|
||||||
$.syncing[key] = cb
|
$.syncing[key] = cb
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user