From 9ddd1f84ba3c2cada5cf3eaf2e6e17322a64d4fe Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 9 Dec 2017 17:58:19 -0800 Subject: [PATCH] Remove XrayWrappers when syncing data. #1652 --- src/platform/$.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/$.coffee b/src/platform/$.coffee index c8dfb35a5..ad866219c 100644 --- a/src/platform/$.coffee +++ b/src/platform/$.coffee @@ -512,7 +512,7 @@ if GM?.deleteValue? and window.BroadcastChannel and not GM_addValueChangeListene $.on $.syncChannel, 'message', (e) -> for key, val of e.data when (cb = $.syncing[key]) - cb val, key + cb JSON.parse(JSON.stringify(val)), key $.sync = (key, cb) -> $.syncing[key] = cb