From f26cf75239d831080b577183229e529e6a3d0ba0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 5 Jan 2016 23:16:26 -0800 Subject: [PATCH] Make $.forceSync work in Firefox with cookies disabled. --- src/General/$.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/$.coffee b/src/General/$.coffee index 572ae89cf..975fa7277 100644 --- a/src/General/$.coffee +++ b/src/General/$.coffee @@ -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